Simple Question (Direct)
Simple Question
Q15114032
P54
Q1194951
USER
Which national sports team is Gustav Engvall a member of ?
(Q15114032,P54,c(Q1194951))
action filter_type
action find
entity Q15114032
relation P54
type Q1194951
['Q15114032', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?l WHERE { resource:Q15114032 property:P54 ?l . ?l rdf:type ontology:Q1194951 }
Gustav Engvall
action filter_type
action find
entity Gustav Engvall
relation member of sports team
type national sports team
['Gustav Engvall', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?l WHERE { resource:Gustav_Engvall property:member_of_sports_team ?l . ?l rdf:type ontology:national_sports_team }
[]
national sports team
Q160826
SYSTEM
Sweden national football team
Q160826
(Q15114032,P54,c(Q1194951))
action filter_type
action find
entity Q15114032
relation P54
type Q1194951
The [ANSWER] is Gustav Engvall a member of
['Q15114032', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?l WHERE { resource:Q15114032 property:P54 ?l . ?l rdf:type ontology:Q1194951 }
Sweden national football team
The Sweden national football team is Gustav Engvall a member of
Sweden national football team
action filter_type
action find
entity Gustav Engvall
relation member of sports team
type national sports team
['Gustav Engvall', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?l WHERE { resource:Gustav_Engvall property:member_of_sports_team ?l . ?l rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15114032
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q160826,P27,c(Q15617994))
action filter_type
action find
entity Q15114032
relation P27
type Q15617994
['Q160826', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q15114032 property:P27 ?i }
Gustav Engvall
action filter_type
action find
entity Gustav Engvall
relation country of citizenship
type designation for an administrative territorial entity
['Sweden national football team', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Gustav_Engvall property:country_of_citizenship ?i }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q160826,P27,c(Q15617994))
action filter_type
action find
entity Q15114032
relation P27
type Q15617994
The [ANSWER] is the country of citizenship of that person
['Q160826', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q15114032 property:P27 ?i }
Sweden
The Sweden is the country of citizenship of that person
Sweden
action filter_type
action find
entity Gustav Engvall
relation country of citizenship
type designation for an administrative territorial entity
['Sweden national football team', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Gustav_Engvall property:country_of_citizenship ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15114032
P19
Q56061
USER
Which administrative territory was Gustav Engvall born at ?
(Q15114032,P19,c(Q56061))
action filter_type
action find
entity Q15114032
relation P19
type Q56061
['Q15114032', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q15114032 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Gustav Engvall
action filter_type
action find
entity Gustav Engvall
relation place of birth
type administrative territorial entity
['Gustav Engvall', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Gustav_Engvall property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q26345
SYSTEM
Kalmar
Q26345
(Q15114032,P19,c(Q56061))
action filter_type
action find
entity Q15114032
relation P19
type Q56061
Gustav Engvall was born in [ANSWER]
['Q15114032', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q15114032 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Kalmar
Gustav Engvall was born in Kalmar
Kalmar
action filter_type
action find
entity Gustav Engvall
relation place of birth
type administrative territorial entity
['Gustav Engvall', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Gustav_Engvall property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15114032
P106
Q12737077
USER
Which occupation has Gustav Engvall as his/her 's career ?
(Q15114032,P106,c(Q12737077))
action filter_type
action find
entity Q15114032
relation P106
type Q12737077
['Q15114032', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . resource:Q15114032 property:P106 ?i }
Gustav Engvall
action filter_type
action find
entity Gustav Engvall
relation occupation
type occupation
['Gustav Engvall', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . resource:Gustav_Engvall property:occupation ?i }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q15114032,P106,c(Q12737077))
action filter_type
action find
entity Q15114032
relation P106
type Q12737077
Player [ANSWER] has Gustav Engvall as his/her 's career
['Q15114032', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . resource:Q15114032 property:P106 ?i }
association football player
Player association football player has Gustav Engvall as his/her 's career
association football player
action filter_type
action find
entity Gustav Engvall
relation occupation
type occupation
['Gustav Engvall', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . resource:Gustav_Engvall property:occupation ?i }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15997695
Q12737077
USER
And what about William Rowlands?
(Q15997695,P106,c(Q12737077))
action filter_type
action find
entity Q15997695
relation P106
type Q12737077
['Q15997695', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q15997695 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
William Rowlands
action filter_type
action find
entity William Rowlands
relation occupation
type occupation
['William Rowlands', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:William_Rowlands property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q12299841
SYSTEM
cricketer
Q12299841
(Q15997695,P106,c(Q12737077))
action filter_type
action find
entity Q15997695
relation P106
type Q12737077
[ANSWER]
['Q15997695', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q15997695 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
cricketer
cricketer
action filter_type
action find
entity William Rowlands
relation occupation
type occupation
['William Rowlands', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:William_Rowlands property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P180
Q12737077 Q3516658 Q838948
USER
Which occupations are expressed in approximately the same number of heraldic symbols and works of art as that occupation ?
(c(Q3516658)|c(Q838948),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q12299841
relation P180
type Q3516658
type Q838948
[[{'concept': 'Q3516658'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { ?w property:P180 resource:Q12299841 . { ?w rdf:type ?t . VALUES ( ?t ) { ( ontology:Q3516658 ) ( ontology:Q838948 ) } } } } . FILTER ( ?z = ?r ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?q WHERE { { ?d property:P180 ?q . ?q rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q3516658 } UNION { ?q rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q838948 . ?d property:P180 ?q } } GROUP BY ?q } }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity cricketer
relation depicts
type heraldic symbol
type work of art
[[{'concept': 'heraldic symbol'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { ?w property:depicts resource:cricketer . { ?w rdf:type ?t . VALUES ( ?t ) { ( ontology:heraldic_symbol ) ( ontology:work_of_art ) } } } } . FILTER ( ?z = ?r ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?q WHERE { { ?d property:depicts ?q . ?q rdf:type ontology:occupation . ?d rdf:type ontology:heraldic_symbol } UNION { ?q rdf:type ontology:occupation . ?d rdf:type ontology:work_of_art . ?d property:depicts ?q } } GROUP BY ?q } }
[]
occupation heraldic symbol work of art
Q131512 Q186360 Q242468
SYSTEM
farmer, nurse, tailor
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q131512 Q16735601 Q37226 Q1401609 Q27621374 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q19723482 Q170790 Q1139055 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q733786 Q2309900 Q805221 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q14009165 Q15954519 Q2981922 Q10833314 Q1318187 Q29182 Q326358 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q589897 Q4594605 Q54128 Q242468 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q170779 Q18575684 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q253567 Q3439798 Q2191547 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q15296811 Q765541 Q2011889 Q49476 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q42603 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q3516658)|c(Q838948),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q12299841
relation P180
type Q3516658
type Q838948
[ANSWERS] are expressed in approximately the same number of heraldic symbols and works of art as that occupation
[[{'concept': 'Q3516658'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { ?w property:P180 resource:Q12299841 . { ?w rdf:type ?t . VALUES ( ?t ) { ( ontology:Q3516658 ) ( ontology:Q838948 ) } } } } . FILTER ( ?z = ?r ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?q WHERE { { ?d property:P180 ?q . ?q rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q3516658 } UNION { ?q rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q838948 . ?d property:P180 ?q } } GROUP BY ?q } }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer farmer florist teacher vaquero bear hunter cobbler arriero lumberjack sewing executor astronaut cooper house painter organist double-bassist actor writer valet sex worker woman of letters ventriloquist amateur wrestler king of marksmen geographer Archbishop of Canterbury minister receptionist milkman coachman model violinist deacon wet nurse sailor clown spinner butcher religious servant detective midwife pianist stonemason explorer artist merchant civil servant sower abbé architect street musician nurse parson mandolinist mathematician tax collector mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic monk helmsman ballet dancer harpsichordist rescuer king VOC Opperhoofd in Japan drummer referee curate firefighter dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar hobo fishmonger recorder player laborer priestess gravedigger erudite comics artist boxer odalisque chronicler plowman trapper alchemist American pioneer tennis player scrivener bishop joiner goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper condottiero canon chess player discus thrower bassoonist mufti cowboy rabbi mime artist scientist mahout magistrate domestic worker tailor housekeeper theologian courier monarch salt pan worker porter pastor courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner Kassandra embroiderer exotic dancer lyricist plasterer gardener composer miller tightrope walker maid lady's maid apprentice King of France picador woodcutter lacemaker Snake charming carpenter school teacher officer baker knife grinder police officer guard Maid of honour draughtsperson kazasker madam archbishop boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric construction worker basketry mail carrier priest artisan art model bushranger weaver Australian-rules footballer sea captain Roman emperor quarryman cook street artist waiting staff
Farmer, nurse and tailor are expressed in approximately the same number of heraldic symbols and works of art as that occupation
farmer nurse tailor
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity cricketer
relation depicts
type heraldic symbol
type work of art
[[{'concept': 'heraldic symbol'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { ?w property:depicts resource:cricketer . { ?w rdf:type ?t . VALUES ( ?t ) { ( ontology:heraldic_symbol ) ( ontology:work_of_art ) } } } } . FILTER ( ?z = ?r ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?q WHERE { { ?d property:depicts ?q . ?q rdf:type ontology:occupation . ?d rdf:type ontology:heraldic_symbol } UNION { ?q rdf:type ontology:occupation . ?d rdf:type ontology:work_of_art . ?d property:depicts ?q } } GROUP BY ?q } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P138
Q12737077 Q2088357 Q811979
USER
How many occupations are around the same number of musical ensembles and architectural structures named after as that occupation ?
(c(Q2088357)|c(Q811979),P138,c(Q12737077))
[[{'concept': 'Q2088357'}, {'concept': 'Q811979'}], 'P138', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?d property:P138 ?y . VALUES ( ?d ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q2088357 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q811979 }
[[{'concept': 'musical ensemble'}, {'concept': 'architectural structure'}], 'named after', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?d property:named_after ?y . VALUES ( ?d ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:musical_ensemble . ?y rdf:type ontology:occupation . ?x rdf:type ontology:architectural_structure }
[]
occupation musical ensemble architectural structure
Comparative|Count over More/Less|Mult. entity type|Clarification
Q131512
SYSTEM
Did you mean farmer ?
(c(Q2088357)|c(Q811979),P138,c(Q12737077))
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q811979'}], 'P138', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?d property:P138 ?y . VALUES ( ?d ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q2088357 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q811979 }
Did you mean farmer ?
farmer
[[{'concept': 'musical ensemble'}, {'concept': 'architectural structure'}], 'named after', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?d property:named_after ?y . VALUES ( ?d ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:musical_ensemble . ?y rdf:type ontology:occupation . ?x rdf:type ontology:architectural_structure }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant tailor. Could you tell me the answer for that?
(c(Q2088357)|c(Q811979),P138,c(Q12737077))
Q242468
[[{'concept': 'Q2088357'}, {'concept': 'Q811979'}], 'P138', {'concept': 'Q12737077'}]
[[{'concept': 'musical ensemble'}, {'concept': 'architectural structure'}], 'named after', {'concept': 'occupation'}]
[]
SYSTEM
121
Q192711 Q2347975 Q131512 Q80687 Q152355 Q652122 Q3506352 Q475604 Q11631 Q20765963 Q16010345 Q16149111 Q4151335 Q154549 Q45199 Q878942 Q329737 Q3400050 Q3181438 Q171692 Q30185 Q2550683 Q18576582 Q21771805 Q390776 Q215536 Q3112727 Q3112728 Q42973 Q81096 Q5589725 Q5589724 Q820037 Q326330 Q208762 Q20846080 Q16147601 Q20765611 Q733786 Q20801667 Q44356 Q15442776 Q16202700 Q12097 Q694579 Q20801664 Q386854 Q12059906 Q21075713 Q20853586 Q20644070 Q5589655 Q21993602 Q17089908 Q887010 Q2626318 Q201559 Q316070 Q474306 Q887220 Q326358 Q20801651 Q107198 Q5589668 Q3455803 Q2248045 Q1104153 Q20804520 Q13382355 Q13393921 Q1639825 Q20801647 Q20801646 Q20801644 Q242468 Q1477129 Q693032 Q152002 Q5179781 Q2259451 Q3773745 Q3773741 Q16997621 Q1028181 Q20804530 Q170779 Q5420718 Q20804538 Q275102 Q758780 Q20801656 Q5589688 Q4991371 Q20801652 Q694116 Q5589687 Q5589680 Q20801659 Q5589682 Q20766109 Q19647220 Q3738699 Q7252932 Q2251335 Q3773752 Q331432 Q20198851 Q49757 Q160131 Q456951 Q1141526 Q3112719 Q1491689 Q26218416 Q1436517 Q193391 Q1294787 Q1410101 Q2700922 Q39631 Q593362
(c(Q2088357)|c(Q811979),P138,c(Q12737077))
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q811979'}], 'P138', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P138 ?y } UNION { ?x property:P138 ?y } } . ?z rdf:type ontology:Q2088357 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q811979 }
Prime Minister of India Governor of New York farmer secretary cobbler sewing Governor of Maine maritime pilot astronaut Governor of Arkansas performer Governor of Oregon Governor of Kentucky carpenter sailor Governor of Virginia butcher potter Nagasaki bugyō Patriarch mayor Governor of Oklahoma metallurgist winemaker Governor General of Canada merchant Governor of Wisconsin Governor of New Jersey architect engineer Governor of Texas Governor of Tennessee miner primate chaplain Senator of the Legislature of the United States Virgin Islands Governor of Indiana Governor of Rhode Island monk Governor of Missouri tsar cryptographer Governor of North Carolina king farrier Governor of Iowa drummer herder salt worker Delegate of the Virgin Islands to the United States House of Representatives Governor of Ohio Governor of Hawaii Greverade family Governor of New Mexico Governor of California Governor of South Dakota privateer Fletcher Christian bellfounder Governor of Utah joiner Governor of Nevada barber Governor of Kansas director reaper canon Governor of the United States Virgin Islands archer pioneer blacksmith Governor of Wyoming Governor of Montana Governor of Alaska tailor völva Governor of Maryland pastor cowman stage actor Governor of Vermont Governor of North Dakota sawyer painter Governor of American Samoa Kassandra exotic dancer Governor of the Northern Mariana Islands voivode gardener Governor of Delaware Governor of Nebraska soldier Governor of West Virginia miller Governor of New Hampshire Governor of Michigan Governor of Pennsylvania Governor of Minnesota Governor of Louisiana Governor of Washington forester pro–am school teacher Governor of South Carolina fisherman Governor of Florida poet baker Governor of Puerto Rico stripper Governor of Illinois haberdasher Chief Minister of Kerala Chief mate diplomat artisan pyrotechnist clockmaker physician draper
121
[[{'concept': 'musical ensemble'}, {'concept': 'architectural structure'}], 'named after', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:named_after ?y } UNION { ?x property:named_after ?y } } . ?z rdf:type ontology:musical_ensemble . ?y rdf:type ontology:occupation . ?x rdf:type ontology:architectural_structure }
[]