Simple Question (Direct)
Simple Question
Q2000478
P39
Q12737077
USER
What was the position for which Victor Brailovsky was appointed ?
(Q2000478,P39,c(Q12737077))
action filter_type
action find
entity Q2000478
relation P39
type Q12737077
['Q2000478', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q2000478 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
Victor Brailovsky
action filter_type
action find
entity Victor Brailovsky
relation position held
type occupation
['Victor Brailovsky', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Victor_Brailovsky property:position_held ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q4047513
SYSTEM
Knesset member
Q4047513
(Q2000478,P39,c(Q12737077))
action filter_type
action find
entity Q2000478
relation P39
type Q12737077
[ANSWER]
['Q2000478', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q2000478 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
Knesset member
Knesset member
Knesset member
action filter_type
action find
entity Victor Brailovsky
relation position held
type occupation
['Victor Brailovsky', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Victor_Brailovsky property:position_held ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2000478
P1412
Q25295
USER
Which language family does Victor Brailovsky speak in ?
(Q2000478,P1412,c(Q25295))
action filter_type
action find
entity Q2000478
relation P1412
type Q25295
['Q2000478', 'P1412', {'concept': 'Q25295'}]
SELECT DISTINCT ?j WHERE { resource:Q2000478 property:P1412 ?j . ?j rdf:type ontology:Q25295 }
Victor Brailovsky
action filter_type
action find
entity Victor Brailovsky
relation languages spoken, written or signed
type language family
['Victor Brailovsky', 'languages spoken, written or signed', {'concept': 'language family'}]
SELECT DISTINCT ?j WHERE { resource:Victor_Brailovsky property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language_family }
[]
language family
Q9288
SYSTEM
Hebrew
Q9288
(Q2000478,P1412,c(Q25295))
action filter_type
action find
entity Q2000478
relation P1412
type Q25295
Victor Brailovsky speaks in [ANSWER]
['Q2000478', 'P1412', {'concept': 'Q25295'}]
SELECT DISTINCT ?j WHERE { resource:Q2000478 property:P1412 ?j . ?j rdf:type ontology:Q25295 }
Hebrew
Victor Brailovsky speaks in Hebrew
Hebrew
action filter_type
action find
entity Victor Brailovsky
relation languages spoken, written or signed
type language family
['Victor Brailovsky', 'languages spoken, written or signed', {'concept': 'language family'}]
SELECT DISTINCT ?j WHERE { resource:Victor_Brailovsky property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language_family }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2000478
P21
Q290
USER
Which sex does that person have ?
(Q9288,P21,c(Q290))
action filter_type
action find
entity Q2000478
relation P21
type Q290
['Q9288', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q2000478 property:P21 ?h }
Victor Brailovsky
action filter_type
action find
entity Victor Brailovsky
relation gender
type sex
['Hebrew', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Victor_Brailovsky property:gender ?h }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q9288,P21,c(Q290))
action filter_type
action find
entity Q2000478
relation P21
type Q290
That person has a [ANSWER]
['Q9288', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q2000478 property:P21 ?h }
male
That person has a male
male
action filter_type
action find
entity Victor Brailovsky
relation gender
type sex
['Hebrew', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Victor_Brailovsky property:gender ?h }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q5497662 Q2000478
P21
Q290
USER
And also Frederick Donald Blake
AND((Q2000478,P21,c(Q290)), (Q5497662,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q2000478
relation P21
action find
entity Q5497662
relation P21
type Q290
{'AND': [['Q2000478', 'P21', {'concept': 'Q290'}], ['Q5497662', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?w WHERE { resource:Q2000478 property:P21 ?w . resource:Q5497662 property:P21 ?w . ?w rdf:type ontology:Q290 }
Frederick Donald Blake Victor Brailovsky
action filter_type
action intersection
action find
entity Victor Brailovsky
relation gender
action find
entity Frederick Donald Blake
relation gender
type sex
{'AND': [['Victor Brailovsky', 'gender', {'concept': 'sex'}], ['Frederick Donald Blake', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?w WHERE { resource:Victor_Brailovsky property:gender ?w . resource:Frederick_Donald_Blake property:gender ?w . ?w rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
AND((Q2000478,P21,c(Q290)), (Q5497662,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q2000478
relation P21
action find
entity Q5497662
relation P21
type Q290
[ANSWER]
{'AND': [['Q2000478', 'P21', {'concept': 'Q290'}], ['Q5497662', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?w WHERE { resource:Q2000478 property:P21 ?w . resource:Q5497662 property:P21 ?w . ?w rdf:type ontology:Q290 }
male
male
action filter_type
action intersection
action find
entity Victor Brailovsky
relation gender
action find
entity Frederick Donald Blake
relation gender
type sex
{'AND': [['Victor Brailovsky', 'gender', {'concept': 'sex'}], ['Frederick Donald Blake', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?w WHERE { resource:Victor_Brailovsky property:gender ?w . resource:Frederick_Donald_Blake property:gender ?w . ?w rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P282
Q8192 Q25295
USER
How many writing systems are used as the alphabet set for atmost 2 language families ?
(c(Q25295),P282,c(Q8192))
action count
action atmost
action find_reverse_tuple_counts
relation P282
type Q8192
type Q25295
value 2
[{'concept': 'Q25295'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?w ) WHERE { ?t property:P282 ?l . ?l rdf:type ontology:Q8192 . ?t rdf:type ontology:Q25295 } GROUP BY ?l } . FILTER ( ?w <= 2 ) }
action count
action atmost
action find_reverse_tuple_counts
relation writing system
type writing system
type language family
value 2
[{'concept': 'language family'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?w ) WHERE { ?t property:writing_system ?l . ?l rdf:type ontology:writing_system . ?t rdf:type ontology:language_family } GROUP BY ?l } . FILTER ( ?w <= 2 ) }
[]
writing system language family
SYSTEM
31
Q854968 Q689894 Q82946 Q1140801 Q2274646 Q467037 Q933796 Q570450 Q2613755 Q1054190 Q2385276 Q1574992 Q1314503 Q51592 Q1703713 Q877906 Q38592 Q756802 Q804984 Q2374532 Q30972 Q1060381 Q839666 Q1760127 Q2566326 Q79199 Q191272 Q26549 Q1471822 Q48332 Q26803
(c(Q25295),P282,c(Q8192))
action count
action atmost
action find_reverse_tuple_counts
relation P282
type Q8192
type Q25295
value 2
[ANSWER]
[{'concept': 'Q25295'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?w ) WHERE { ?t property:P282 ?l . ?l rdf:type ontology:Q8192 . ?t rdf:type ontology:Q25295 } GROUP BY ?l } . FILTER ( ?w <= 2 ) }
Burmese alphabet Gurmukhī alphabet katakana Vietnamese Braille Inuktitut syllabics Brahmic script Limbu alphabet Telugu script Tocharian alphabet Khmer alphabet Ranjana alphabet Sinhala script Tai Tham alphabet Batak alphabet Modi alphabet Thaana Devanagari Bengali alphabet Balinese alphabet Uyghur Arabic alphabet Linear A Cham alphabet Kannada alphabet Oriya alphabet Tai Le alphabet Varang Kshiti Assamese alphabet Cherokee syllabary Old Persian cuneiform hiragana Tamil script
31
action count
action atmost
action find_reverse_tuple_counts
relation writing system
type writing system
type language family
value 2
[{'concept': 'language family'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?w ) WHERE { ?t property:writing_system ?l . ?l rdf:type ontology:writing_system . ?t rdf:type ontology:language_family } GROUP BY ?l } . FILTER ( ?w <= 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2000478
P937
Q56061
USER
Which is the work location of Victor Brailovsky ?
(Q2000478,P937,c(Q56061))
action filter_type
action find
entity Q2000478
relation P937
type Q56061
['Q2000478', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . resource:Q2000478 property:P937 ?v }
Victor Brailovsky
action filter_type
action find
entity Victor Brailovsky
relation work location
type administrative territorial entity
['Victor Brailovsky', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . resource:Victor_Brailovsky property:work_location ?v }
[]
administrative territorial entity
Q1218
SYSTEM
Jerusalem
Q1218
(Q2000478,P937,c(Q56061))
action filter_type
action find
entity Q2000478
relation P937
type Q56061
[ANSWER] is the work location of Victor Brailovsky
['Q2000478', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . resource:Q2000478 property:P937 ?v }
Jerusalem
Jerusalem is the work location of Victor Brailovsky
Jerusalem
action filter_type
action find
entity Victor Brailovsky
relation work location
type administrative territorial entity
['Victor Brailovsky', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . resource:Victor_Brailovsky property:work_location ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2000478
P102
Q7210356
USER
Which party is Victor Brailovsky affiliated with ?
(Q2000478,P102,c(Q7210356))
action filter_type
action find
entity Q2000478
relation P102
type Q7210356
['Q2000478', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { resource:Q2000478 property:P102 ?p . ?p rdf:type ontology:Q7210356 }
Victor Brailovsky
action filter_type
action find
entity Victor Brailovsky
relation member of political party
type political organization
['Victor Brailovsky', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { resource:Victor_Brailovsky property:member_of_political_party ?p . ?p rdf:type ontology:political_organization }
[]
political organization
Q1500739
SYSTEM
Shinui
Q1500739
(Q2000478,P102,c(Q7210356))
action filter_type
action find
entity Q2000478
relation P102
type Q7210356
Victor Brailovsky is affiliated with [ANSWER]
['Q2000478', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { resource:Q2000478 property:P102 ?p . ?p rdf:type ontology:Q7210356 }
Shinui
Victor Brailovsky is affiliated with Shinui
Shinui
action filter_type
action find
entity Victor Brailovsky
relation member of political party
type political organization
['Victor Brailovsky', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { resource:Victor_Brailovsky property:member_of_political_party ?p . ?p rdf:type ontology:political_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1218
P276
Q57821 Q12737077
USER
How many fortifications or occupations are located at Jerusalem ?
(c(Q57821),P276,Q1218) (c(Q12737077),P276,Q1218)
action count
action union
action filter_type
action find_reverse
entity Q1218
relation P276
type Q57821
action filter_type
action find_reverse
entity Q1218
relation P276
type Q12737077
[{'concept': 'Q57821'}, 'P276', 'Q1218'] [{'concept': 'Q12737077'}, 'P276', 'Q1218']
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { ?b property:P276 resource:Q1218 . ?b rdf:type ontology:Q57821 } UNION { ?b rdf:type ontology:Q12737077 . ?b property:P276 resource:Q1218 } }
Jerusalem
action count
action union
action filter_type
action find_reverse
entity Jerusalem
relation location
type fortification
action filter_type
action find_reverse
entity Jerusalem
relation location
type occupation
[{'concept': 'fortification'}, 'location', 'Jerusalem'] [{'concept': 'occupation'}, 'location', 'Jerusalem']
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { ?b property:location resource:Jerusalem . ?b rdf:type ontology:fortification } UNION { ?b rdf:type ontology:occupation . ?b property:location resource:Jerusalem } }
[]
fortification occupation
SYSTEM
2
Q7257095 Q18676766
(c(Q57821),P276,Q1218) (c(Q12737077),P276,Q1218)
action count
action union
action filter_type
action find_reverse
entity Q1218
relation P276
type Q57821
action filter_type
action find_reverse
entity Q1218
relation P276
type Q12737077
[ANSWER]
[{'concept': 'Q57821'}, 'P276', 'Q1218'] [{'concept': 'Q12737077'}, 'P276', 'Q1218']
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { ?b property:P276 resource:Q1218 . ?b rdf:type ontology:Q57821 } UNION { ?b rdf:type ontology:Q12737077 . ?b property:P276 resource:Q1218 } }
Ptolemaic Baris Israelite Bishop of Jerusalem
2
action count
action union
action filter_type
action find_reverse
entity Jerusalem
relation location
type fortification
action filter_type
action find_reverse
entity Jerusalem
relation location
type occupation
[{'concept': 'fortification'}, 'location', 'Jerusalem'] [{'concept': 'occupation'}, 'location', 'Jerusalem']
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { ?b property:location resource:Jerusalem . ?b rdf:type ontology:fortification } UNION { ?b rdf:type ontology:occupation . ?b property:location resource:Jerusalem } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q838948 Q15709879
USER
Which occupations are expressed in min number of works of art or artwork series ?
(c(Q838948)|c(Q15709879),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
[[{'concept': 'Q838948'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?r ) WHERE { VALUES ( ?b ) { ( ontology:Q838948 ) ( ontology:Q15709879 ) } . ?k rdf:type ?b } GROUP BY ?y } . FILTER ( ?r = ?w ) . { SELECT DISTINCT ( MIN ( ?c ) AS ?w ) { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?c ) WHERE { { ?i property:P180 ?e . ?e rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q838948 } UNION { ?i property:P180 ?e . ?e rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q15709879 } } GROUP BY ?e } } }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
[[{'concept': 'work of art'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?r ) WHERE { VALUES ( ?b ) { ( ontology:work_of_art ) ( ontology:artwork_series ) } . ?k rdf:type ?b } GROUP BY ?y } . FILTER ( ?r = ?w ) . { SELECT DISTINCT ( MIN ( ?c ) AS ?w ) { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?c ) WHERE { { ?i property:depicts ?e . ?e rdf:type ontology:occupation . ?i rdf:type ontology:work_of_art } UNION { ?i property:depicts ?e . ?e rdf:type ontology:occupation . ?i rdf:type ontology:artwork_series } } GROUP BY ?e } } }
[]
occupation work of art artwork series
Q186360 Q242468 Q182436
SYSTEM
nurse, tailor, librarian
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q1569439 Q16735601 Q37226 Q1401609 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q161944 Q472898 Q45199 Q7358 Q19968805 Q4504549 Q842782 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q19723482 Q170790 Q1139055 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q327321 Q549322 Q327029 Q733786 Q2309900 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q537575 Q20826540 Q715301 Q11338576 Q14009165 Q15954519 Q10833314 Q1318187 Q29182 Q326358 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q15725121 Q185992 Q133485 Q674067 Q901 Q589897 Q4594605 Q242468 Q2596569 Q1234713 Q848466 Q116 Q1509714 Q152002 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q11063 Q774306 Q2276446 Q207651 Q18575684 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q253567 Q3439798 Q2191547 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q765541 Q2011889 Q49476 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q849424 Q7622988 Q157195
(c(Q838948)|c(Q15709879),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
[ANSWERS] are expressed in min number of works of art or artwork series
[[{'concept': 'Q838948'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?r ) WHERE { VALUES ( ?b ) { ( ontology:Q838948 ) ( ontology:Q15709879 ) } . ?k rdf:type ?b } GROUP BY ?y } . FILTER ( ?r = ?w ) . { SELECT DISTINCT ( MIN ( ?c ) AS ?w ) { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?c ) WHERE { { ?i property:P180 ?e . ?e rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q838948 } UNION { ?i property:P180 ?e . ?e rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q15709879 } } GROUP BY ?e } } }
fiddler acrobat milkmaid worker standard-bearer sheep shearer florist teacher vaquero cobbler arriero lumberjack sewing executor astronaut cooper house painter organist double-bassist actor valet sex worker woman of letters ventriloquist amateur wrestler king of marksmen geographer Archbishop of Canterbury minister receptionist milkman coachman model deacon wet nurse sailor clown spinner religious servant detective midwife pianist stonemason explorer artist merchant civil servant abbé architect street musician nurse parson mandolinist mathematician tax collector mayor bell-ringer miner beekeeper washerwoman cellist bricklayer torero mechanic monk helmsman harpsichordist rescuer king VOC Opperhoofd in Japan drummer referee curate firefighter dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja friar hobo fishmonger recorder player laborer gravedigger erudite comics artist boxer trapper alchemist tennis player scrivener bishop joiner goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper condottiero canon chess player bassoonist mufti rabbi mime artist scientist mahout magistrate tailor housekeeper theologian courier monarch porter pastor courtier judge abbot matador goldsmith astronomer surgeon domestic worker cook executioner embroiderer exotic dancer lyricist plasterer gardener composer miller tightrope walker maid apprentice King of France picador woodcutter lacemaker Snake charming carpenter school teacher baker knife grinder police officer guard Maid of honour kazasker madam archbishop boatman salesperson cricketer aviator milkmaid nun librarian cleric construction worker basketry mail carrier artisan art model bushranger weaver Australian-rules footballer sea captain street artist waiting staff
Nurse, tailor and librarian are expressed in min number of works of art or artwork series
nurse tailor librarian
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
[[{'concept': 'work of art'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?r ) WHERE { VALUES ( ?b ) { ( ontology:work_of_art ) ( ontology:artwork_series ) } . ?k rdf:type ?b } GROUP BY ?y } . FILTER ( ?r = ?w ) . { SELECT DISTINCT ( MIN ( ?c ) AS ?w ) { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?c ) WHERE { { ?i property:depicts ?e . ?e rdf:type ontology:occupation . ?i rdf:type ontology:work_of_art } UNION { ?i property:depicts ?e . ?e rdf:type ontology:occupation . ?i rdf:type ontology:artwork_series } } GROUP BY ?e } } }
[]