Simple Question (Direct)
Simple Question
Q911936
P641
Q349
USER
Which sport was Brian Bradley a part of ?
(Q911936,P641,c(Q349))
action filter_type
action find
entity Q911936
relation P641
type Q349
['Q911936', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?p WHERE { resource:Q911936 property:P641 ?p . ?p rdf:type ontology:Q349 }
Brian Bradley
action filter_type
action find
entity Brian Bradley
relation sport
type sport
['Brian Bradley', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?p WHERE { resource:Brian_Bradley property:sport ?p . ?p rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q911936,P641,c(Q349))
action filter_type
action find
entity Q911936
relation P641
type Q349
Dennis [ANSWER] was Brian Bradley a part of
['Q911936', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?p WHERE { resource:Q911936 property:P641 ?p . ?p rdf:type ontology:Q349 }
ice hockey
Dennis ice hockey was Brian Bradley a part of
ice hockey
action filter_type
action find
entity Brian Bradley
relation sport
type sport
['Brian Bradley', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?p WHERE { resource:Brian_Bradley property:sport ?p . ?p rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q911936
P734
Q82799
USER
Who is associated with that person ?
(Q41466,P734,c(Q82799))
action filter_type
action find
entity Q911936
relation P734
type Q82799
['Q41466', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q911936 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Brian Bradley
action filter_type
action find
entity Brian Bradley
relation family name
type name
['ice hockey', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Brian_Bradley property:family_name ?u . ?u rdf:type ontology:name }
[]
name
Q896987
SYSTEM
Bradley
Q896987
(Q41466,P734,c(Q82799))
action filter_type
action find
entity Q911936
relation P734
type Q82799
[ANSWER] is associated with that person
['Q41466', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q911936 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Bradley
Bradley is associated with that person
Bradley
action filter_type
action find
entity Brian Bradley
relation family name
type name
['ice hockey', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Brian_Bradley property:family_name ?u . ?u rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q896987 Q873995
P407
Q34770
USER
Is Ch’olti’ language the language of work for that name ?
(Q896987,P407,Q873995)
action is_in
entity Q873995
action find
entity Q896987
relation P407
['Q896987', 'P407', 'Q873995']
ASK WHERE { resource:Q896987 property:P407 resource:Q873995 }
Bradley Ch’olti’ language
action is_in
entity Ch’olti’ language
action find
entity Bradley
relation language of work or name
['Bradley', 'language of work or name', 'Ch’olti’ language']
ASK WHERE { resource:Bradley property:language_of_work_or_name resource:Ch’olti’_language }
[]
language
SYSTEM
NO
(Q896987,P407,Q873995)
action is_in
entity Q873995
action find
entity Q896987
relation P407
[ANSWER]
['Q896987', 'P407', 'Q873995']
ASK WHERE { resource:Q896987 property:P407 resource:Q873995 }
No
action is_in
entity Ch’olti’ language
action find
entity Bradley
relation language of work or name
['Bradley', 'language of work or name', 'Ch’olti’ language']
ASK WHERE { resource:Bradley property:language_of_work_or_name resource:Ch’olti’_language }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q896987
P734 P21
Q502895
USER
Which people have Bradley as surname and have male as the sex ?
AND((c(Q502895),P734,Q896987), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q896987
relation P734
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P734', 'Q896987'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . ?z property:P734 resource:Q896987 . ?z property:P21 resource:Q6581097 }
male Bradley
action filter_type
action intersection
action find_reverse
entity Bradley
relation family name
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'family name', 'Bradley'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . ?z property:family_name resource:Bradley . ?z property:gender resource:male }
[]
common name
Q1774360 Q911936 Q522388 Q17279906 Q3973167 Q3644437 Q57596 Q3666350 Q1607728 Q3703113
SYSTEM
Some of them are Dan Bradley, Brian Bradley, Henry Bradley, Charles Bradley, Stephen Bradley, Brian Bradley, Shawn Bradley, Charles Bradley, Dudley Bradley, Dai Bradley
Q705531 Q17279907 Q17279906 Q504317 Q911936 Q670858 Q3973167 Q504025 Q3612910 Q57596 Q1607728 Q442325 Q320073 Q3313646 Q312278 Q1619538 Q376230 Q1353905 Q24809472 Q3703113 Q208425 Q635329 Q522388 Q350236 Q3849450 Q1357158 Q3645453 Q384259 Q3644437 Q1774360 Q3666350 Q207955 Q92970 Q16194976 Q3639954
AND((c(Q502895),P734,Q896987), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q896987
relation P734
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have Bradley as surname and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P734', 'Q896987'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . ?z property:P734 resource:Q896987 . ?z property:P21 resource:Q6581097 }
Doug Bradley James Bradley Charles Bradley Alan Bradley Brian Bradley Scott Bradley Stephen Bradley Bill Bradley Alonzo Bradley Shawn Bradley Dudley Bradley Bob Bradley David Bradley Gus Bradley James Bradley Michael Bradley Jim Bradley Keegan Bradley Scott Bradley Dai Bradley Michael Bradley Brendan Bradley Henry Bradley F. H. Bradley Mark Bradley Will H. Bradley Bruce Bradley Joe Bradley Brian Bradley Dan Bradley Charles Bradley Omar Bradley David Bradley Steve Bradley Bill Bradley
Dan Bradley, Brian Bradley, Henry Bradley, Charles Bradley, Stephen Bradley, Brian Bradley, Shawn Bradley, Charles Bradley, Dudley Bradley and Dai Bradley have Bradley as surname and have male as the sex
Dan Bradley Brian Bradley Henry Bradley Charles Bradley Stephen Bradley Brian Bradley Shawn Bradley Charles Bradley Dudley Bradley Dai Bradley
action filter_type
action intersection
action find_reverse
entity Bradley
relation family name
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'family name', 'Bradley'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . ?z property:family_name resource:Bradley . ?z property:gender resource:male }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q386724
USER
How many works had their voice dubbing done by atleast 3 people ?
(c(Q386724),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q386724
type Q502895
value 3
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:Q502895 . ?t rdf:type ontology:Q386724 . ?t property:P725 ?i } GROUP BY ?t } . FILTER ( ?r >= 3 ) }
action count
action atleast
action find_tuple_counts
relation voice actor
type work
type common name
value 3
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:common_name . ?t rdf:type ontology:work . ?t property:voice_actor ?i } GROUP BY ?t } . FILTER ( ?r >= 3 ) }
[]
common name work
SYSTEM
16
Q26987217 Q26331781 Q26701981 Q23752771 Q27627540 Q26712000 Q24175397 Q26390366 Q26715049 Q26299860 Q25858085 Q26457246 Q26301623 Q13516675 Q26829863 Q23894983
(c(Q386724),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q386724
type Q502895
value 3
[ANSWER]
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:Q502895 . ?t rdf:type ontology:Q386724 . ?t property:P725 ?i } GROUP BY ?t } . FILTER ( ?r >= 3 ) }
Hércules y la visita de Zeus Hércules y el examen de conducir Hércules y el grifo Iron Man Doctor Strange (Doctor Extraño) Hércules y los Tecno-Griegos Capitán América: El primer vengador Hércules y el rey de Tesalia Peter y el dragón Hércules y el primer médico del mundo Alicia a través del espejo Hércules y el arma secreta Hércules y el primer día de escuela Sakura Trick Angry Birds: La película Iron Man 2
16
action count
action atleast
action find_tuple_counts
relation voice actor
type work
type common name
value 3
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:common_name . ?t rdf:type ontology:work . ?t property:voice_actor ?i } GROUP BY ?t } . FILTER ( ?r >= 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3703113
P27
Q15617994
USER
Which administrative territory is Dai Bradley an inhabitant of ?
(Q3703113,P27,c(Q15617994))
action filter_type
action find
entity Q3703113
relation P27
type Q15617994
['Q3703113', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q3703113 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Dai Bradley
action filter_type
action find
entity Dai Bradley
relation country of citizenship
type designation for an administrative territorial entity
['Dai Bradley', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Dai_Bradley property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q3703113,P27,c(Q15617994))
action filter_type
action find
entity Q3703113
relation P27
type Q15617994
[ANSWER] is Dai Bradley an inhabitant of
['Q3703113', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q3703113 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is Dai Bradley an inhabitant of
United Kingdom
action filter_type
action find
entity Dai Bradley
relation country of citizenship
type designation for an administrative territorial entity
['Dai Bradley', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Dai_Bradley property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3371191
Q15617994
USER
And what about Paul Faulquemont?
(Q3371191,P27,c(Q15617994))
action filter_type
action find
entity Q3371191
relation P27
type Q15617994
['Q3371191', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q3371191 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Paul Faulquemont
action filter_type
action find
entity Paul Faulquemont
relation country of citizenship
type designation for an administrative territorial entity
['Paul Faulquemont', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Paul_Faulquemont property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3371191,P27,c(Q15617994))
action filter_type
action find
entity Q3371191
relation P27
type Q15617994
[ANSWER]
['Q3371191', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q3371191 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
France
France
action filter_type
action find
entity Paul Faulquemont
relation country of citizenship
type designation for an administrative territorial entity
['Paul Faulquemont', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Paul_Faulquemont property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3371191
P19
Q20667921
USER
Which french administrative division is the place of birth of that person ?
(Q142,P19,c(Q20667921))
action filter_type
action find
entity Q3371191
relation P19
type Q20667921
['Q142', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q20667921 . resource:Q3371191 property:P19 ?e }
Paul Faulquemont
action filter_type
action find
entity Paul Faulquemont
relation place of birth
type type of french administrative division
['France', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:type_of_french_administrative_division . resource:Paul_Faulquemont property:place_of_birth ?e }
[]
type of french administrative division
Q22690
SYSTEM
Metz
Q22690
(Q142,P19,c(Q20667921))
action filter_type
action find
entity Q3371191
relation P19
type Q20667921
[ANSWER] is the place of birth of that person
['Q142', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q20667921 . resource:Q3371191 property:P19 ?e }
Metz
Metz is the place of birth of that person
Metz
action filter_type
action find
entity Paul Faulquemont
relation place of birth
type type of french administrative division
['France', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:type_of_french_administrative_division . resource:Paul_Faulquemont property:place_of_birth ?e }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q22690 Q743118
P19
Q502895
USER
Was Cyrille Pouget born at that french administrative division ?
(Q743118,P19,Q22690)
action is_in
entity Q22690
action find
entity Q743118
relation P19
['Q743118', 'P19', 'Q22690']
ASK WHERE { resource:Q743118 property:P19 resource:Q22690 }
Metz Cyrille Pouget
action is_in
entity Metz
action find
entity Cyrille Pouget
relation place of birth
['Cyrille Pouget', 'place of birth', 'Metz']
ASK WHERE { resource:Cyrille_Pouget property:place_of_birth resource:Metz }
[]
common name
SYSTEM
YES
(Q743118,P19,Q22690)
action is_in
entity Q22690
action find
entity Q743118
relation P19
[ANSWER]
['Q743118', 'P19', 'Q22690']
ASK WHERE { resource:Q743118 property:P19 resource:Q22690 }
Yes
action is_in
entity Metz
action find
entity Cyrille Pouget
relation place of birth
['Cyrille Pouget', 'place of birth', 'Metz']
ASK WHERE { resource:Cyrille_Pouget property:place_of_birth resource:Metz }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q145 Q269412
P35
Q502895
USER
Is George V elected as the head of state of United Kingdom ?
(Q145,P35,Q269412)
action is_in
entity Q269412
action find
entity Q145
relation P35
['Q145', 'P35', 'Q269412']
ASK WHERE { resource:Q145 property:P35 resource:Q269412 }
United Kingdom George V
action is_in
entity George V
action find
entity United Kingdom
relation head of state
['United Kingdom', 'head of state', 'George V']
ASK WHERE { resource:United_Kingdom property:head_of_state resource:George_V }
[]
common name
SYSTEM
YES
(Q145,P35,Q269412)
action is_in
entity Q269412
action find
entity Q145
relation P35
[ANSWER]
['Q145', 'P35', 'Q269412']
ASK WHERE { resource:Q145 property:P35 resource:Q269412 }
Yes
action is_in
entity George V
action find
entity United Kingdom
relation head of state
['United Kingdom', 'head of state', 'George V']
ASK WHERE { resource:United_Kingdom property:head_of_state resource:George_V }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q22690 Q142
P17
Q15617994
USER
Is Metz situated in France ?
(Q22690,P17,Q142)
action is_in
entity Q142
action find
entity Q22690
relation P17
['Q22690', 'P17', 'Q142']
ASK WHERE { resource:Q22690 property:P17 resource:Q142 }
Metz France
action is_in
entity France
action find
entity Metz
relation country
['Metz', 'country', 'France']
ASK WHERE { resource:Metz property:country resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q22690,P17,Q142)
action is_in
entity Q142
action find
entity Q22690
relation P17
[ANSWER]
['Q22690', 'P17', 'Q142']
ASK WHERE { resource:Q22690 property:P17 resource:Q142 }
Yes
action is_in
entity France
action find
entity Metz
relation country
['Metz', 'country', 'France']
ASK WHERE { resource:Metz property:country resource:France }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q115
P85
Q7725634 Q484692 Q15617994
USER
Which administrative territories have less number of literary works and hymns as their national anthem than Ethiopia ?
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action less
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q115
relation P85
type Q7725634
type Q484692
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?n ) WHERE { { ?g property:P85 ?w . ?g rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q7725634 } UNION { ?g property:P85 ?w . ?g rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q484692 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { ?s rdf:type ?m . VALUES ( ?m ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } . resource:Q115 property:P85 ?s } } . FILTER ( ?n < ?h ) }
Ethiopia
action less
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Ethiopia
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?n ) WHERE { { ?g property:anthem ?w . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:literary_work } UNION { ?g property:anthem ?w . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:hymn } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { ?s rdf:type ?m . VALUES ( ?m ) { ( ontology:literary_work ) ( ontology:hymn ) } } . resource:Ethiopia property:anthem ?s } } . FILTER ( ?n < ?h ) }
[]
literary work hymn designation for an administrative territorial entity
Q142 Q1093 Q773
SYSTEM
France, Limburg, Overijssel
Q701 Q705 Q142 Q1093 Q694 Q773 Q772 Q33788
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action less
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q115
relation P85
type Q7725634
type Q484692
[ANSWERS] have less number of literary works and hymns as their national anthem than Ethiopia
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?n ) WHERE { { ?g property:P85 ?w . ?g rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q7725634 } UNION { ?g property:P85 ?w . ?g rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q484692 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { ?s rdf:type ?m . VALUES ( ?m ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } . resource:Q115 property:P85 ?s } } . FILTER ( ?n < ?h ) }
North Holland Zeeland France Limburg South Holland Overijssel Drenthe New Caledonia
France, Limburg and Overijssel have less number of literary works and hymns as their national anthem than Ethiopia
France Limburg Overijssel
action less
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Ethiopia
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?n ) WHERE { { ?g property:anthem ?w . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:literary_work } UNION { ?g property:anthem ?w . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:hymn } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { ?s rdf:type ?m . VALUES ( ?m ) { ( ontology:literary_work ) ( ontology:hymn ) } } . resource:Ethiopia property:anthem ?s } } . FILTER ( ?n < ?h ) }
[]