Simple Question (Direct)
Simple Question
Q62377
P119
Q43229
USER
Where is the place of burial for Carl Wilhelm Siemens located ?
(Q62377,P119,c(Q43229))
action filter_type
action find
entity Q62377
relation P119
type Q43229
['Q62377', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q43229 . resource:Q62377 property:P119 ?a }
Carl Wilhelm Siemens
action filter_type
action find
entity Carl Wilhelm Siemens
relation place of burial
type organization
['Carl Wilhelm Siemens', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:organization . resource:Carl_Wilhelm_Siemens property:place_of_burial ?a }
[]
organization
Q1574424
SYSTEM
Kensal Green Cemetery
Q1574424
(Q62377,P119,c(Q43229))
action filter_type
action find
entity Q62377
relation P119
type Q43229
The place of burial for Carl Wilhelm Siemens is located in [ANSWER]
['Q62377', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q43229 . resource:Q62377 property:P119 ?a }
Kensal Green Cemetery
The place of burial for Carl Wilhelm Siemens is located in Kensal Green Cemetery
Kensal Green Cemetery
action filter_type
action find
entity Carl Wilhelm Siemens
relation place of burial
type organization
['Carl Wilhelm Siemens', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:organization . resource:Carl_Wilhelm_Siemens property:place_of_burial ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q62377
P166
Q24016972
USER
Which type of distinction was Carl Wilhelm Siemens awarded with ?
(Q62377,P166,c(Q24016972))
action filter_type
action find
entity Q62377
relation P166
type Q24016972
['Q62377', 'P166', {'concept': 'Q24016972'}]
SELECT DISTINCT ?s WHERE { resource:Q62377 property:P166 ?s . ?s rdf:type ontology:Q24016972 }
Carl Wilhelm Siemens
action filter_type
action find
entity Carl Wilhelm Siemens
relation award received
type type of distinction
['Carl Wilhelm Siemens', 'award received', {'concept': 'type of distinction'}]
SELECT DISTINCT ?s WHERE { resource:Carl_Wilhelm_Siemens property:award_received ?s . ?s rdf:type ontology:type_of_distinction }
[]
type of distinction
Q15631401
SYSTEM
Fellow of the Royal Society
Q15631401
(Q62377,P166,c(Q24016972))
action filter_type
action find
entity Q62377
relation P166
type Q24016972
Carl Wilhelm Siemens was awarded a [ANSWER]
['Q62377', 'P166', {'concept': 'Q24016972'}]
SELECT DISTINCT ?s WHERE { resource:Q62377 property:P166 ?s . ?s rdf:type ontology:Q24016972 }
Fellow of the Royal Society
Carl Wilhelm Siemens was awarded a Fellow of the Royal Society
Fellow of the Royal Society
action filter_type
action find
entity Carl Wilhelm Siemens
relation award received
type type of distinction
['Carl Wilhelm Siemens', 'award received', {'concept': 'type of distinction'}]
SELECT DISTINCT ?s WHERE { resource:Carl_Wilhelm_Siemens property:award_received ?s . ?s rdf:type ontology:type_of_distinction }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q62377
P138
Q2695280
USER
Which technics is named after Carl Wilhelm Siemens ?
(c(Q2695280),P138,Q62377)
action filter_type
action find_reverse
entity Q62377
relation P138
type Q2695280
[{'concept': 'Q2695280'}, 'P138', 'Q62377']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q2695280 . ?t property:P138 resource:Q62377 }
Carl Wilhelm Siemens
action filter_type
action find_reverse
entity Carl Wilhelm Siemens
relation named after
type technics
[{'concept': 'technics'}, 'named after', 'Carl Wilhelm Siemens']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:technics . ?t property:named_after resource:Carl_Wilhelm_Siemens }
[]
technics
Q45728
SYSTEM
open hearth furnace
Q45728
(c(Q2695280),P138,Q62377)
action filter_type
action find_reverse
entity Q62377
relation P138
type Q2695280
[ANSWER] is named after Carl Wilhelm Siemens
[{'concept': 'Q2695280'}, 'P138', 'Q62377']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q2695280 . ?t property:P138 resource:Q62377 }
open hearth furnace
Open hearth furnace is named after Carl Wilhelm Siemens
open hearth furnace
action filter_type
action find_reverse
entity Carl Wilhelm Siemens
relation named after
type technics
[{'concept': 'technics'}, 'named after', 'Carl Wilhelm Siemens']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:technics . ?t property:named_after resource:Carl_Wilhelm_Siemens }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q62377
P7
Q502895
USER
Which people had that one as brother ?
(c(Q502895),P7,Q45728)
action filter_type
action find
entity Q62377
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q45728']
SELECT DISTINCT ?v WHERE { resource:Q62377 property:P7 ?v . ?v rdf:type ontology:Q502895 }
Carl Wilhelm Siemens
action filter_type
action find
entity Carl Wilhelm Siemens
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'open hearth furnace']
SELECT DISTINCT ?v WHERE { resource:Carl_Wilhelm_Siemens property:brother ?v . ?v rdf:type ontology:common_name }
[]
common name
Q58577 Q87276 Q77345
SYSTEM
Ernst Werner von Siemens, Friedrich Siemens, Carl Heinrich von Siemens
Q1582522 Q58577 Q87276 Q77345
(c(Q502895),P7,Q45728)
action filter_type
action find
entity Q62377
relation P7
type Q502895
[ANSWERS] had that one as brother
[{'concept': 'Q502895'}, 'P7', 'Q45728']
SELECT DISTINCT ?v WHERE { resource:Q62377 property:P7 ?v . ?v rdf:type ontology:Q502895 }
Hans Siemens Ernst Werner von Siemens Friedrich Siemens Carl Heinrich von Siemens
Ernst Werner von Siemens, Friedrich Siemens and Carl Heinrich von Siemens had that one as brother
Ernst Werner von Siemens Friedrich Siemens Carl Heinrich von Siemens
action filter_type
action find
entity Carl Wilhelm Siemens
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'open hearth furnace']
SELECT DISTINCT ?v WHERE { resource:Carl_Wilhelm_Siemens property:brother ?v . ?v rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q11623287
P725
Q502895 Q95074
USER
How many fictional characters had their voice dubbing done by less number of people than Takumi Fujiwara ?
(c(Q95074),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q11623287
relation P725
type Q502895
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?u ) WHERE { ?y property:P725 ?p . ?y rdf:type ontology:Q95074 . ?p rdf:type ontology:Q502895 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { resource:Q11623287 property:P725 ?c . ?c rdf:type ontology:Q502895 } } . FILTER ( ?u < ?m ) }
Takumi Fujiwara
action count
action less
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Takumi Fujiwara
relation voice actor
type common name
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?u ) WHERE { ?y property:voice_actor ?p . ?y rdf:type ontology:fictional_character . ?p rdf:type ontology:common_name } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { resource:Takumi_Fujiwara property:voice_actor ?c . ?c rdf:type ontology:common_name } } . FILTER ( ?u < ?m ) }
[]
common name fictional character
SYSTEM
33
Q16027672 Q21847055 Q3498590 Q308950 Q28465 Q551327 Q21837832 Q21847115 Q15710873 Q2442950 Q21847074 Q21837038 Q7828 Q3838346 Q2570349 Q8139731 Q247120 Q1529229 Q21847089 Q21847086 Q17349786 Q21847215 Q21837905 Q1621656 Q2544561 Q27493503 Q1984009 Q605125 Q21847105 Q21847103 Q5846 Q7810 Q2725247
(c(Q95074),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q11623287
relation P725
type Q502895
[ANSWER]
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?u ) WHERE { ?y property:P725 ?p . ?y rdf:type ontology:Q95074 . ?p rdf:type ontology:Q502895 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { resource:Q11623287 property:P725 ?c . ?c rdf:type ontology:Q502895 } } . FILTER ( ?u < ?m ) }
Dr. Stewart Itsuki Tachibana Chester Cheetah Ash Ketchum Peter Griffin terminator Kyōichi Sudō Fumihiro Princess Celestia Max Rockatansky Kōichirō Iketani Keisuke Takahashi Marge Simpson Lucas Spike Spiegel G-Man Neo Darkwing Duck Kenji Natsuki Mogi Shulk Seiji Iwaki Itsuki Takeuchi Solid Snake Ike Desoto Death GLaDOS Kenta Nakamura Shingo Shōji Lisa Simpson Homer Simpson Ness
33
action count
action less
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Takumi Fujiwara
relation voice actor
type common name
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?u ) WHERE { ?y property:voice_actor ?p . ?y rdf:type ontology:fictional_character . ?p rdf:type ontology:common_name } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { resource:Takumi_Fujiwara property:voice_actor ?c . ?c rdf:type ontology:common_name } } . FILTER ( ?u < ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q3471289
P725
Q502895 Q95074
USER
And how about Samurai Goroh?
(c(Q95074),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q3471289
relation P725
type Q502895
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ontology:Q502895 . ?w rdf:type ontology:Q95074 . ?w property:P725 ?z } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i rdf:type ontology:Q502895 . resource:Q3471289 property:P725 ?i } } . FILTER ( ?b < ?q ) }
Samurai Goroh
action count
action less
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Samurai Goroh
relation voice actor
type common name
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ontology:common_name . ?w rdf:type ontology:fictional_character . ?w property:voice_actor ?z } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i rdf:type ontology:common_name . resource:Samurai_Goroh property:voice_actor ?i } } . FILTER ( ?b < ?q ) }
[]
common name fictional character
SYSTEM
39
Q16027672 Q21847055 Q3498590 Q308950 Q28465 Q551327 Q21837832 Q21847058 Q21847115 Q15710873 Q2442950 Q21847074 Q21837038 Q7828 Q3838346 Q2570349 Q8139731 Q247120 Q1529229 Q21847089 Q21847086 Q11623287 Q17349786 Q21847215 Q3256697 Q21837905 Q21837397 Q1621656 Q2544561 Q21837021 Q21837027 Q27493503 Q1984009 Q605125 Q21847105 Q21847103 Q5846 Q7810 Q2725247
(c(Q95074),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q3471289
relation P725
type Q502895
[ANSWER]
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ontology:Q502895 . ?w rdf:type ontology:Q95074 . ?w property:P725 ?z } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i rdf:type ontology:Q502895 . resource:Q3471289 property:P725 ?i } } . FILTER ( ?b < ?q ) }
Dr. Stewart Itsuki Tachibana Chester Cheetah Ash Ketchum Peter Griffin terminator Kyōichi Sudō Yūichi Tachibana Fumihiro Princess Celestia Max Rockatansky Kōichirō Iketani Keisuke Takahashi Marge Simpson Lucas Spike Spiegel G-Man Neo Darkwing Duck Kenji Natsuki Mogi Takumi Fujiwara Shulk Seiji Iwaki Little Mac Itsuki Takeuchi Takeshi Nakazato Solid Snake Ike Bunta Fujiwara Ryōsuke Takahashi Desoto Death GLaDOS Kenta Nakamura Shingo Shōji Lisa Simpson Homer Simpson Ness
39
action count
action less
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Samurai Goroh
relation voice actor
type common name
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?z ) AS ?b ) WHERE { ?z rdf:type ontology:common_name . ?w rdf:type ontology:fictional_character . ?w property:voice_actor ?z } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { ?i rdf:type ontology:common_name . resource:Samurai_Goroh property:voice_actor ?i } } . FILTER ( ?b < ?q ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q58577
P22
Q502895
USER
Who are the offspring of Ernst Werner von Siemens ?
(c(Q502895),P22,Q58577)
action filter_type
action find_reverse
entity Q58577
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q58577']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . ?c property:P22 resource:Q58577 }
Ernst Werner von Siemens
action filter_type
action find_reverse
entity Ernst Werner von Siemens
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ernst Werner von Siemens']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . ?c property:father resource:Ernst_Werner_von_Siemens }
[]
common name
Q69181 Q77913 Q77274
SYSTEM
Carl Friedrich von Siemens, Arnold von Siemens, Georg Wilhelm von Siemens
Q563675 Q77274 Q69181 Q77913
(c(Q502895),P22,Q58577)
action filter_type
action find_reverse
entity Q58577
relation P22
type Q502895
The offspring of Ernst Werner von Siemens are [ANSWERS]
[{'concept': 'Q502895'}, 'P22', 'Q58577']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . ?c property:P22 resource:Q58577 }
Anna Zanders Georg Wilhelm von Siemens Carl Friedrich von Siemens Arnold von Siemens
The offspring of Ernst Werner von Siemens are Carl Friedrich von Siemens, Arnold von Siemens and Georg Wilhelm von Siemens
Carl Friedrich von Siemens Arnold von Siemens Georg Wilhelm von Siemens
action filter_type
action find_reverse
entity Ernst Werner von Siemens
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ernst Werner von Siemens']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . ?c property:father resource:Ernst_Werner_von_Siemens }
[]
Clarification
Simple Question|Single Entity|Indirect
Q77913
P40
Q502895
USER
Who has that one as an offspring ?
(c(Q502895),P40,Q77913)
action filter_type
action find_reverse
entity Q77913
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q77913']
SELECT DISTINCT ?z WHERE { ?z property:P40 resource:Q77913 . ?z rdf:type ontology:Q502895 }
Arnold von Siemens
action filter_type
action find_reverse
entity Arnold von Siemens
relation child
type common name
[{'concept': 'common name'}, 'child', 'Arnold von Siemens']
SELECT DISTINCT ?z WHERE { ?z property:child resource:Arnold_von_Siemens . ?z rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q77274
SYSTEM
Did you mean Georg Wilhelm von Siemens ?
Q69181 Q77913 Q77274
(c(Q502895),P40,Q69181) (c(Q502895),P40,Q77913) (c(Q502895),P40,Q77274)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q69181'] [{'concept': 'Q502895'}, 'P40', 'Q77913'] [{'concept': 'Q502895'}, 'P40', 'Q77274']
SELECT DISTINCT ?z WHERE { ?z property:P40 resource:Q77913 . ?z rdf:type ontology:Q502895 }
Carl Friedrich von Siemens Arnold von Siemens Georg Wilhelm von Siemens
Did you mean Georg Wilhelm von Siemens ?
Georg Wilhelm von Siemens
[{'concept': 'common name'}, 'child', 'Carl Friedrich von Siemens'] [{'concept': 'common name'}, 'child', 'Arnold von Siemens'] [{'concept': 'common name'}, 'child', 'Georg Wilhelm von Siemens']
SELECT DISTINCT ?z WHERE { ?z property:child resource:Arnold_von_Siemens . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Arnold von Siemens. Could you tell me the answer for that?
(c(Q502895),P40,Q77913)
Q77913
[{'concept': 'Q502895'}, 'P40', 'Q77913']
[{'concept': 'common name'}, 'child', 'Arnold von Siemens']
[]
Q58577
SYSTEM
Ernst Werner von Siemens
Q58577
(c(Q502895),P40,Q77913)
action filter_type
action find_reverse
entity Q77913
relation P40
type Q502895
[ANSWER] has that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q77913']
SELECT DISTINCT ?z WHERE { ?z property:P40 resource:Q77913 . ?z rdf:type ontology:Q502895 }
Ernst Werner von Siemens
Ernst Werner von Siemens has that one as an offspring
Ernst Werner von Siemens
action filter_type
action find_reverse
entity Arnold von Siemens
relation child
type common name
[{'concept': 'common name'}, 'child', 'Arnold von Siemens']
SELECT DISTINCT ?z WHERE { ?z property:child resource:Arnold_von_Siemens . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q43229 Q2088357 Q12280
USER
How many organizations are the etymology of exactly 1 musical ensembles or bridges ?
(c(Q2088357)|c(Q12280),P138,c(Q43229))
action count
action equal
action union
action find_reverse_tuple_counts
relation P138
type Q43229
type Q2088357
action find_reverse_tuple_counts
relation P138
type Q43229
type Q12280
value 1
[[{'concept': 'Q2088357'}, {'concept': 'Q12280'}], 'P138', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?r WHERE { { ?m rdf:type ontology:Q2088357 . ?r rdf:type ontology:Q43229 . ?m property:P138 ?r } UNION { ?m property:P138 ?r . ?r rdf:type ontology:Q43229 . ?m rdf:type ontology:Q12280 } } GROUP BY ?r } }
action count
action equal
action union
action find_reverse_tuple_counts
relation named after
type organization
type musical ensemble
action find_reverse_tuple_counts
relation named after
type organization
type bridge
value 1
[[{'concept': 'musical ensemble'}, {'concept': 'bridge'}], 'named after', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?r WHERE { { ?m rdf:type ontology:musical_ensemble . ?r rdf:type ontology:organization . ?m property:named_after ?r } UNION { ?m property:named_after ?r . ?r rdf:type ontology:organization . ?m rdf:type ontology:bridge } } GROUP BY ?r } }
[]
organization musical ensemble bridge
SYSTEM
2
Q2373726 Q159656
(c(Q2088357)|c(Q12280),P138,c(Q43229))
action count
action equal
action union
action find_reverse_tuple_counts
relation P138
type Q43229
type Q2088357
action find_reverse_tuple_counts
relation P138
type Q43229
type Q12280
value 1
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q12280'}], 'P138', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?r WHERE { { ?m rdf:type ontology:Q2088357 . ?r rdf:type ontology:Q43229 . ?m property:P138 ?r } UNION { ?m property:P138 ?r . ?r rdf:type ontology:Q43229 . ?m rdf:type ontology:Q12280 } } GROUP BY ?r } }
Werkspoor Krupp
2
action count
action equal
action union
action find_reverse_tuple_counts
relation named after
type organization
type musical ensemble
action find_reverse_tuple_counts
relation named after
type organization
type bridge
value 1
[[{'concept': 'musical ensemble'}, {'concept': 'bridge'}], 'named after', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?r WHERE { { ?m rdf:type ontology:musical_ensemble . ?r rdf:type ontology:organization . ?m property:named_after ?r } UNION { ?m property:named_after ?r . ?r rdf:type ontology:organization . ?m rdf:type ontology:bridge } } GROUP BY ?r } }
[]