Simple Question (Direct)
Simple Question
Q3382839
P27
Q15617994
USER
Which administrative territory is the native country of Pierre-Antoine-Augustin de Piis ?
(Q3382839,P27,c(Q15617994))
action filter_type
action find
entity Q3382839
relation P27
type Q15617994
['Q3382839', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q3382839 property:P27 ?z }
Pierre-Antoine-Augustin de Piis
action filter_type
action find
entity Pierre-Antoine-Augustin de Piis
relation country of citizenship
type designation for an administrative territorial entity
['Pierre-Antoine-Augustin de Piis', '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:Pierre-Antoine-Augustin_de_Piis property:country_of_citizenship ?z }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3382839,P27,c(Q15617994))
action filter_type
action find
entity Q3382839
relation P27
type Q15617994
[ANSWER] is the native country of Pierre-Antoine-Augustin de Piis
['Q3382839', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q3382839 property:P27 ?z }
France
France is the native country of Pierre-Antoine-Augustin de Piis
France
action filter_type
action find
entity Pierre-Antoine-Augustin de Piis
relation country of citizenship
type designation for an administrative territorial entity
['Pierre-Antoine-Augustin de Piis', '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:Pierre-Antoine-Augustin_de_Piis property:country_of_citizenship ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3382839
P19
Q56061
USER
Where was Pierre-Antoine-Augustin de Piis born ?
(Q3382839,P19,c(Q56061))
action filter_type
action find
entity Q3382839
relation P19
type Q56061
['Q3382839', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q3382839 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Pierre-Antoine-Augustin de Piis
action filter_type
action find
entity Pierre-Antoine-Augustin de Piis
relation place of birth
type administrative territorial entity
['Pierre-Antoine-Augustin de Piis', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Pierre-Antoine-Augustin_de_Piis property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q3382839,P19,c(Q56061))
action filter_type
action find
entity Q3382839
relation P19
type Q56061
Pierre-Antoine-Augustin de Piis was born in [ANSWER]
['Q3382839', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q3382839 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Paris
Pierre-Antoine-Augustin de Piis was born in Paris
Paris
action filter_type
action find
entity Pierre-Antoine-Augustin de Piis
relation place of birth
type administrative territorial entity
['Pierre-Antoine-Augustin de Piis', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Pierre-Antoine-Augustin_de_Piis property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3382839
P21
Q290
USER
Which sex does that person possess ?
(Q90,P21,c(Q290))
action filter_type
action find
entity Q3382839
relation P21
type Q290
['Q90', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q3382839 property:P21 ?h . ?h rdf:type ontology:Q290 }
Pierre-Antoine-Augustin de Piis
action filter_type
action find
entity Pierre-Antoine-Augustin de Piis
relation gender
type sex
['Paris', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Pierre-Antoine-Augustin_de_Piis property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q90,P21,c(Q290))
action filter_type
action find
entity Q3382839
relation P21
type Q290
That person possesses a [ANSWER]
['Q90', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q3382839 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity Pierre-Antoine-Augustin de Piis
relation gender
type sex
['Paris', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Pierre-Antoine-Augustin_de_Piis property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q90
P127
Q838948
USER
Which works of art are owned by Paris ?
(c(Q838948),P127,Q90)
action filter_type
action find_reverse
entity Q90
relation P127
type Q838948
[{'concept': 'Q838948'}, 'P127', 'Q90']
SELECT DISTINCT ?g WHERE { ?g property:P127 resource:Q90 . ?g rdf:type ontology:Q838948 }
Paris
action filter_type
action find_reverse
entity Paris
relation owned by
type work of art
[{'concept': 'work of art'}, 'owned by', 'Paris']
SELECT DISTINCT ?g WHERE { ?g property:owned_by resource:Paris . ?g rdf:type ontology:work_of_art }
[]
work of art
Q3212678 Q24575431
SYSTEM
La Sainte Catherine, Alexander II
Q3212678 Q24575431
(c(Q838948),P127,Q90)
action filter_type
action find_reverse
entity Q90
relation P127
type Q838948
[ANSWERS] are owned by Paris
[{'concept': 'Q838948'}, 'P127', 'Q90']
SELECT DISTINCT ?g WHERE { ?g property:P127 resource:Q90 . ?g rdf:type ontology:Q838948 }
La Sainte Catherine Alexander II
La Sainte Catherine and Alexander II are owned by Paris
La Sainte Catherine Alexander II
action filter_type
action find_reverse
entity Paris
relation owned by
type work of art
[{'concept': 'work of art'}, 'owned by', 'Paris']
SELECT DISTINCT ?g WHERE { ?g property:owned_by resource:Paris . ?g rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3212678
P800
Q502895
USER
Which person is accredited with being the author of the notable work that one ?
(c(Q502895),P800,Q3212678)
action filter_type
action find_reverse
entity Q3212678
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q3212678']
SELECT DISTINCT ?s WHERE { ?s property:P800 resource:Q3212678 . ?s rdf:type ontology:Q502895 }
La Sainte Catherine
action filter_type
action find_reverse
entity La Sainte Catherine
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'La Sainte Catherine']
SELECT DISTINCT ?s WHERE { ?s property:notable_work resource:La_Sainte_Catherine . ?s rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q24575431
SYSTEM
Did you mean Alexander II ?
Q3212678 Q24575431
(c(Q502895),P800,Q3212678) (c(Q502895),P800,Q24575431)
[ANSWER]
[{'concept': 'Q502895'}, 'P800', 'Q3212678'] [{'concept': 'Q502895'}, 'P800', 'Q24575431']
SELECT DISTINCT ?s WHERE { ?s property:P800 resource:Q3212678 . ?s rdf:type ontology:Q502895 }
La Sainte Catherine Alexander II
Did you mean Alexander II ?
Alexander II
[{'concept': 'common name'}, 'notable work', 'La Sainte Catherine'] [{'concept': 'common name'}, 'notable work', 'Alexander II']
SELECT DISTINCT ?s WHERE { ?s property:notable_work resource:La_Sainte_Catherine . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant La Sainte Catherine. Could you tell me the answer for that?
(c(Q502895),P800,Q3212678)
Q3212678
[{'concept': 'Q502895'}, 'P800', 'Q3212678']
[{'concept': 'common name'}, 'notable work', 'La Sainte Catherine']
[]
Q3189572
SYSTEM
Julien Lorieux
Q3189572
(c(Q502895),P800,Q3212678)
action filter_type
action find_reverse
entity Q3212678
relation P800
type Q502895
[ANSWER] is accredited with being the author of the notable work that one
[{'concept': 'Q502895'}, 'P800', 'Q3212678']
SELECT DISTINCT ?s WHERE { ?s property:P800 resource:Q3212678 . ?s rdf:type ontology:Q502895 }
Julien Lorieux
Julien Lorieux is accredited with being the author of the notable work that one
Julien Lorieux
action filter_type
action find_reverse
entity La Sainte Catherine
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'La Sainte Catherine']
SELECT DISTINCT ?s WHERE { ?s property:notable_work resource:La_Sainte_Catherine . ?s rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q3189572 Q2140000
P802
Q502895
USER
Does Alexandre Falguière have that one as their teacher ?
(Q2140000,P802,Q3189572)
action is_in
entity Q3189572
action find
entity Q2140000
relation P802
['Q2140000', 'P802', 'Q3189572']
ASK WHERE { resource:Q2140000 property:P802 resource:Q3189572 }
Julien Lorieux Alexandre Falguière
action is_in
entity Julien Lorieux
action find
entity Alexandre Falguière
relation student
['Alexandre Falguière', 'student', 'Julien Lorieux']
ASK WHERE { resource:Alexandre_Falguière property:student resource:Julien_Lorieux }
[]
common name
SYSTEM
YES
(Q2140000,P802,Q3189572)
action is_in
entity Q3189572
action find
entity Q2140000
relation P802
[ANSWER]
['Q2140000', 'P802', 'Q3189572']
ASK WHERE { resource:Q2140000 property:P802 resource:Q3189572 }
Yes
action is_in
entity Julien Lorieux
action find
entity Alexandre Falguière
relation student
['Alexandre Falguière', 'student', 'Julien Lorieux']
ASK WHERE { resource:Alexandre_Falguière property:student resource:Julien_Lorieux }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q23395
P674
Q15619164 Q6619679 Q838948
USER
Which works of art have the character lesser number of abstract beings and fictional humanoids than Fear and Loathing in Las Vegas ?
(c(Q838948),P674,c(Q15619164)|c(Q6619679))
action less
action union
action find_tuple_counts
relation P674
type Q838948
type Q15619164
action find_tuple_counts
relation P674
type Q838948
type Q6619679
action count
action filter_multi_types
action find
entity Q23395
relation P674
type Q15619164
type Q6619679
[{'concept': 'Q838948'}, 'P674', [{'concept': 'Q15619164'}, {'concept': 'Q6619679'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { resource:Q23395 property:P674 ?p . { VALUES ( ?m ) { ( ontology:Q15619164 ) ( ontology:Q6619679 ) } . ?p rdf:type ?m } } } . FILTER ( ?v < ?o ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) ?s WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:Q15619164 ) ( ontology:Q6619679 ) } } GROUP BY ?s } }
Fear and Loathing in Las Vegas
action less
action union
action find_tuple_counts
relation characters
type work of art
type abstract being
action find_tuple_counts
relation characters
type work of art
type fictional humanoid
action count
action filter_multi_types
action find
entity Fear and Loathing in Las Vegas
relation characters
type abstract being
type fictional humanoid
[{'concept': 'work of art'}, 'characters', [{'concept': 'abstract being'}, {'concept': 'fictional humanoid'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { resource:Fear_and_Loathing_in_Las_Vegas property:characters ?p . { VALUES ( ?m ) { ( ontology:abstract_being ) ( ontology:fictional_humanoid ) } . ?p rdf:type ?m } } } . FILTER ( ?v < ?o ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) ?s WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:abstract_being ) ( ontology:fictional_humanoid ) } } GROUP BY ?s } }
[]
abstract being fictional humanoid work of art
Q758588 Q16933688 Q705232
SYSTEM
Arsene Lupin vs. Arsene Lupin, The Fencer, Arsène Lupin
Q20736738 Q2893677 Q1216139 Q3226385 Q3230758 Q23701769 Q20711488 Q1764277 Q868483 Q286381 Q945342 Q320594 Q26768828 Q903424 Q18170404 Q3320792 Q241077 Q471066 Q512807 Q1196012 Q11053391 Q788676 Q754687 Q614607 Q542055 Q5437016 Q5071342 Q2864475 Q375786 Q3332723 Q16933688 Q3213141 Q788458 Q148643 Q1246408 Q705232 Q3483718 Q4409901 Q758588 Q672319 Q1233164 Q11688406 Q341482 Q498150 Q16201590 Q412341 Q2022683 Q294001 Q733444 Q24060599 Q4261490 Q506546 Q41567 Q3457623 Q1183443 Q746818 Q1216943 Q1415903 Q83186 Q4851394 Q1233203 Q888131 Q2834224 Q5380161 Q4796620 Q934597 Q793366 Q3515611 Q583392 Q740134
(c(Q838948),P674,c(Q15619164)|c(Q6619679))
action less
action union
action find_tuple_counts
relation P674
type Q838948
type Q15619164
action find_tuple_counts
relation P674
type Q838948
type Q6619679
action count
action filter_multi_types
action find
entity Q23395
relation P674
type Q15619164
type Q6619679
[ANSWERS] have the character lesser number of abstract beings and fictional humanoids than Fear and Loathing in Las Vegas
[{'concept': 'Q838948'}, 'P674', [{'concept': 'Q15619164'}, {'concept': 'Q6619679'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { resource:Q23395 property:P674 ?p . { VALUES ( ?m ) { ( ontology:Q15619164 ) ( ontology:Q6619679 ) } . ?p rdf:type ?m } } } . FILTER ( ?v < ?o ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) ?s WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:Q15619164 ) ( ontology:Q6619679 ) } } GROUP BY ?s } }
Kullervo Beep, Beep The Suppliants Arsène Lupin Returns The Adventures of Arsène Lupin Periandros van Korinthe Harry Potter and the Cursed Child Taras Bulba A Chinese Odyssey Medea Trachiniae Abhijñānaśākuntalam Teit meistä kauniin Iphigénie Seer 4 Agamemnon Antigone The Government Inspector Andromaque Britannicus La Torna Bajazet Athalie Ion Sir Thomas More Fast and Furry-ous Chandragupta Arsene Lupin, Detective Hippolytus Médée The Fencer La Thébaïde The Persians Oedipus Rex Alcestis Arsène Lupin Signé Arsène Lupin The Wedding Arsene Lupin vs. Arsene Lupin The Suppliants Eumenides The Libation Bearers Acis and Galatea Taras Bulba Going! Going! Gosh! Ajax On the Harmful Effects of Tobacco Oedipus at Colonus Electra Die Pluimsaad Waai Ver Liquidation Seven against Thebes Hamlet Mudrarakshasa The Crucible Esther The Trojan Women Philoctetes Romeo and Juliet Balladyna Herakles' Children The Wind Rises Alexandre le Grand Enter Arsène Lupin Arsène Lupin The Bacchae Berenice Taras Bulba Les Plaideurs Mithridate
Arsene Lupin vs. Arsene Lupin, The Fencer and Arsène Lupin have the character lesser number of abstract beings and fictional humanoids than Fear and Loathing in Las Vegas
Arsene Lupin vs. Arsene Lupin The Fencer Arsène Lupin
action less
action union
action find_tuple_counts
relation characters
type work of art
type abstract being
action find_tuple_counts
relation characters
type work of art
type fictional humanoid
action count
action filter_multi_types
action find
entity Fear and Loathing in Las Vegas
relation characters
type abstract being
type fictional humanoid
[{'concept': 'work of art'}, 'characters', [{'concept': 'abstract being'}, {'concept': 'fictional humanoid'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { resource:Fear_and_Loathing_in_Las_Vegas property:characters ?p . { VALUES ( ?m ) { ( ontology:abstract_being ) ( ontology:fictional_humanoid ) } . ?p rdf:type ?m } } } . FILTER ( ?v < ?o ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) ?s WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:abstract_being ) ( ontology:fictional_humanoid ) } } GROUP BY ?s } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q3481943
P674
Q15619164 Q6619679 Q838948
USER
And also tell me about Sherlock Holmes?
(c(Q838948),P674,c(Q15619164)|c(Q6619679))
action less
action union
action find_tuple_counts
relation P674
type Q838948
type Q15619164
action find_tuple_counts
relation P674
type Q838948
type Q6619679
action count
action filter_multi_types
action find
entity Q3481943
relation P674
type Q15619164
type Q6619679
[{'concept': 'Q838948'}, 'P674', [{'concept': 'Q15619164'}, {'concept': 'Q6619679'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?d ) WHERE { { ?c property:P674 ?p . ?c rdf:type ontology:Q838948 . ?p rdf:type ontology:Q15619164 } UNION { ?c property:P674 ?p . ?c rdf:type ontology:Q838948 . ?p rdf:type ontology:Q6619679 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:Q3481943 property:P674 ?z . { ?z rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15619164 ) ( ontology:Q6619679 ) } } } } . FILTER ( ?d < ?e ) }
Sherlock Holmes
action less
action union
action find_tuple_counts
relation characters
type work of art
type abstract being
action find_tuple_counts
relation characters
type work of art
type fictional humanoid
action count
action filter_multi_types
action find
entity Sherlock Holmes
relation characters
type abstract being
type fictional humanoid
[{'concept': 'work of art'}, 'characters', [{'concept': 'abstract being'}, {'concept': 'fictional humanoid'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?d ) WHERE { { ?c property:characters ?p . ?c rdf:type ontology:work_of_art . ?p rdf:type ontology:abstract_being } UNION { ?c property:characters ?p . ?c rdf:type ontology:work_of_art . ?p rdf:type ontology:fictional_humanoid } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:Sherlock_Holmes property:characters ?z . { ?z rdf:type ?g . VALUES ( ?g ) { ( ontology:abstract_being ) ( ontology:fictional_humanoid ) } } } } . FILTER ( ?d < ?e ) }
[]
abstract being fictional humanoid work of art
Q758588 Q16933688 Q705232
SYSTEM
Arsene Lupin vs. Arsene Lupin, The Fencer, Arsène Lupin
Q20736738 Q2893677 Q1216139 Q3226385 Q3230758 Q23701769 Q20711488 Q1764277 Q868483 Q286381 Q945342 Q320594 Q26768828 Q903424 Q18170404 Q3320792 Q241077 Q471066 Q512807 Q1196012 Q11053391 Q788676 Q754687 Q614607 Q542055 Q5437016 Q5071342 Q2864475 Q375786 Q3332723 Q16933688 Q3213141 Q788458 Q148643 Q1246408 Q705232 Q3483718 Q4409901 Q758588 Q672319 Q1233164 Q11688406 Q341482 Q498150 Q16201590 Q412341 Q2022683 Q294001 Q733444 Q24060599 Q4261490 Q506546 Q41567 Q3457623 Q1183443 Q746818 Q1216943 Q1415903 Q83186 Q4851394 Q1233203 Q888131 Q2834224 Q5380161 Q4796620 Q934597 Q793366 Q3515611 Q583392 Q740134
(c(Q838948),P674,c(Q15619164)|c(Q6619679))
action less
action union
action find_tuple_counts
relation P674
type Q838948
type Q15619164
action find_tuple_counts
relation P674
type Q838948
type Q6619679
action count
action filter_multi_types
action find
entity Q3481943
relation P674
type Q15619164
type Q6619679
[ANSWERS]
[{'concept': 'Q838948'}, 'P674', [{'concept': 'Q15619164'}, {'concept': 'Q6619679'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?d ) WHERE { { ?c property:P674 ?p . ?c rdf:type ontology:Q838948 . ?p rdf:type ontology:Q15619164 } UNION { ?c property:P674 ?p . ?c rdf:type ontology:Q838948 . ?p rdf:type ontology:Q6619679 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:Q3481943 property:P674 ?z . { ?z rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15619164 ) ( ontology:Q6619679 ) } } } } . FILTER ( ?d < ?e ) }
Kullervo Beep, Beep The Suppliants Arsène Lupin Returns The Adventures of Arsène Lupin Periandros van Korinthe Harry Potter and the Cursed Child Taras Bulba A Chinese Odyssey Medea Trachiniae Abhijñānaśākuntalam Teit meistä kauniin Iphigénie Seer 4 Agamemnon Antigone The Government Inspector Andromaque Britannicus La Torna Bajazet Athalie Ion Sir Thomas More Fast and Furry-ous Chandragupta Arsene Lupin, Detective Hippolytus Médée The Fencer La Thébaïde The Persians Oedipus Rex Alcestis Arsène Lupin Signé Arsène Lupin The Wedding Arsene Lupin vs. Arsene Lupin The Suppliants Eumenides The Libation Bearers Acis and Galatea Taras Bulba Going! Going! Gosh! Ajax On the Harmful Effects of Tobacco Oedipus at Colonus Electra Die Pluimsaad Waai Ver Liquidation Seven against Thebes Hamlet Mudrarakshasa The Crucible Esther The Trojan Women Philoctetes Romeo and Juliet Balladyna Herakles' Children The Wind Rises Alexandre le Grand Enter Arsène Lupin Arsène Lupin The Bacchae Berenice Taras Bulba Les Plaideurs Mithridate
Arsene Lupin vs. Arsene Lupin The Fencer Arsène Lupin
action less
action union
action find_tuple_counts
relation characters
type work of art
type abstract being
action find_tuple_counts
relation characters
type work of art
type fictional humanoid
action count
action filter_multi_types
action find
entity Sherlock Holmes
relation characters
type abstract being
type fictional humanoid
[{'concept': 'work of art'}, 'characters', [{'concept': 'abstract being'}, {'concept': 'fictional humanoid'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?d ) WHERE { { ?c property:characters ?p . ?c rdf:type ontology:work_of_art . ?p rdf:type ontology:abstract_being } UNION { ?c property:characters ?p . ?c rdf:type ontology:work_of_art . ?p rdf:type ontology:fictional_humanoid } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:Sherlock_Holmes property:characters ?z . { ?z rdf:type ?g . VALUES ( ?g ) { ( ontology:abstract_being ) ( ontology:fictional_humanoid ) } } } } . FILTER ( ?d < ?e ) }
[]