Simple Question (Direct)
Simple Question
Q6696121
P19
Q56061
USER
Which administrative territory was Lucas Cornelisz de Kock born at ?
(Q6696121,P19,c(Q56061))
action filter_type
action find
entity Q6696121
relation P19
type Q56061
['Q6696121', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q6696121 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Lucas Cornelisz de Kock
action filter_type
action find
entity Lucas Cornelisz de Kock
relation place of birth
type administrative territorial entity
['Lucas Cornelisz de Kock', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Lucas_Cornelisz_de_Kock property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q43631
SYSTEM
Leiden
Q43631
(Q6696121,P19,c(Q56061))
action filter_type
action find
entity Q6696121
relation P19
type Q56061
Lucas Cornelisz de Kock was born in [ANSWER]
['Q6696121', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q6696121 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Leiden
Lucas Cornelisz de Kock was born in Leiden
Leiden
action filter_type
action find
entity Lucas Cornelisz de Kock
relation place of birth
type administrative territorial entity
['Lucas Cornelisz de Kock', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Lucas_Cornelisz_de_Kock property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6696121
P921
Q191067
USER
Which article is that person a main subject of ?
(c(Q191067),P921,Q43631)
action filter_type
action find_reverse
entity Q6696121
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q43631']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q191067 . ?l property:P921 resource:Q6696121 }
Lucas Cornelisz de Kock
action filter_type
action find_reverse
entity Lucas Cornelisz de Kock
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Leiden']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:article . ?l property:main_subject resource:Lucas_Cornelisz_de_Kock }
[]
article
Q19063677
SYSTEM
Cornelisz, Lucas (DNB00)
Q19063677
(c(Q191067),P921,Q43631)
action filter_type
action find_reverse
entity Q6696121
relation P921
type Q191067
[ANSWER] is that person a main subject of
[{'concept': 'Q191067'}, 'P921', 'Q43631']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q191067 . ?l property:P921 resource:Q6696121 }
Cornelisz, Lucas (DNB00)
Cornelisz, Lucas (DNB00) is that person a main subject of
Cornelisz, Lucas (DNB00)
action filter_type
action find_reverse
entity Lucas Cornelisz de Kock
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Leiden']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:article . ?l property:main_subject resource:Lucas_Cornelisz_de_Kock }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P361
Q223393 Q191067
USER
Which literary genres are min number of articles a part of ?
(c(Q191067),P361,Q19072211)
action argmin
action find_reverse_tuple_counts
relation P361
type Q223393
type Q191067
[{'concept': 'Q191067'}, 'P361', 'Q19072211']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?s ) { SELECT DISTINCT ?l ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:P361 ?l . ?l rdf:type ontology:Q223393 . ?o rdf:type ontology:Q191067 } GROUP BY ?l } } . { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?a ) WHERE { ?y rdf:type ontology:Q191067 . ?w rdf:type ontology:Q223393 . ?y property:P361 ?w } GROUP BY ?w } . FILTER ( ?a = ?s ) }
action argmin
action find_reverse_tuple_counts
relation part of
type literary genre
type article
[{'concept': 'article'}, 'part of', 'Cyclopædia of American Biographies']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?s ) { SELECT DISTINCT ?l ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:part_of ?l . ?l rdf:type ontology:literary_genre . ?o rdf:type ontology:article } GROUP BY ?l } } . { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?a ) WHERE { ?y rdf:type ontology:article . ?w rdf:type ontology:literary_genre . ?y property:part_of ?w } GROUP BY ?w } . FILTER ( ?a = ?s ) }
[]
literary genre article
Q40185 Q1960551 Q60220
SYSTEM
The Divine Comedy, Russian Biographical Dictionary, Aeneid
Q8276 Q2595941 Q617881 Q377477 Q16701856 Q184742 Q17321018 Q38801 Q1960551 Q40185 Q4173137 Q19979452 Q60220 Q132311 Q1150348 Q214844 Q19072211
(c(Q191067),P361,Q19072211)
action argmin
action find_reverse_tuple_counts
relation P361
type Q223393
type Q191067
[ANSWERS] are min number of articles a part of
[{'concept': 'Q191067'}, 'P361', 'Q19072211']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?s ) { SELECT DISTINCT ?l ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:P361 ?l . ?l rdf:type ontology:Q223393 . ?o rdf:type ontology:Q191067 } GROUP BY ?l } } . { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?a ) WHERE { ?y rdf:type ontology:Q191067 . ?w rdf:type ontology:Q223393 . ?y property:P361 ?w } GROUP BY ?w } . FILTER ( ?a = ?s ) }
Mahabharata Roda Codex Hervarar saga ok Heiðreks Agent 327 The Old Woman Izergil Metamorphoses The Feminist Encyclopedia of Spanish Literature Italian comics Russian Biographical Dictionary The Divine Comedy Jewish Encyclopedia of Brockhaus and Efron A catalogue raisonné of the works of the most eminent Dutch painters of the seventeenth century, based on the works of John Smith Aeneid fantasy Biographical Directory of the United States Congress Michelin Guide Cyclopædia of American Biographies
The Divine Comedy, Russian Biographical Dictionary and Aeneid are min number of articles a part of
The Divine Comedy Russian Biographical Dictionary Aeneid
action argmin
action find_reverse_tuple_counts
relation part of
type literary genre
type article
[{'concept': 'article'}, 'part of', 'Cyclopædia of American Biographies']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?s ) { SELECT DISTINCT ?l ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:part_of ?l . ?l rdf:type ontology:literary_genre . ?o rdf:type ontology:article } GROUP BY ?l } } . { SELECT DISTINCT ?w ( COUNT ( ?y ) AS ?a ) WHERE { ?y rdf:type ontology:article . ?w rdf:type ontology:literary_genre . ?y property:part_of ?w } GROUP BY ?w } . FILTER ( ?a = ?s ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P361
Q187931 Q95074
USER
How many phrases and fictional characters are parts of that literary genre ?
(c(Q187931),P361,Q60220) (c(Q95074),P361,Q60220) (c(Q187931),P361,Q40185) (c(Q95074),P361,Q40185) (c(Q187931),P361,Q1960551) (c(Q95074),P361,Q1960551) (c(Q187931),P361,Q60220) (c(Q95074),P361,Q60220)
[{'concept': 'Q187931'}, 'P361', 'Q60220'] [{'concept': 'Q95074'}, 'P361', 'Q60220'] [{'concept': 'Q187931'}, 'P361', 'Q40185'] [{'concept': 'Q95074'}, 'P361', 'Q40185'] [{'concept': 'Q187931'}, 'P361', 'Q1960551'] [{'concept': 'Q95074'}, 'P361', 'Q1960551'] [{'concept': 'Q187931'}, 'P361', 'Q60220'] [{'concept': 'Q95074'}, 'P361', 'Q60220']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P361 resource:Q19031190 } UNION { ?y property:P361 resource:Q19031190 } UNION { ?z property:P361 resource:Q40185 } UNION { ?y property:P361 resource:Q40185 } UNION { ?z property:P361 resource:Q1960551 } UNION { ?y property:P361 resource:Q1960551 } UNION { ?z property:P361 resource:Q19031190 } UNION { ?y property:P361 resource:Q19031190 } } . ?z rdf:type ontology:Q187931 . ?y rdf:type ontology:Q95074 }
[{'concept': 'phrase'}, 'part of', 'Aeneid'] [{'concept': 'fictional character'}, 'part of', 'Aeneid'] [{'concept': 'phrase'}, 'part of', 'The Divine Comedy'] [{'concept': 'fictional character'}, 'part of', 'The Divine Comedy'] [{'concept': 'phrase'}, 'part of', 'Russian Biographical Dictionary'] [{'concept': 'fictional character'}, 'part of', 'Russian Biographical Dictionary'] [{'concept': 'phrase'}, 'part of', 'Aeneid'] [{'concept': 'fictional character'}, 'part of', 'Aeneid']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:part_of resource:Aeneid } UNION { ?y property:part_of resource:Aeneid } UNION { ?z property:part_of resource:The_Divine_Comedy } UNION { ?y property:part_of resource:The_Divine_Comedy } UNION { ?z property:part_of resource:Russian_Biographical_Dictionary } UNION { ?y property:part_of resource:Russian_Biographical_Dictionary } UNION { ?z property:part_of resource:Aeneid } UNION { ?y property:part_of resource:Aeneid } } . ?z rdf:type ontology:phrase . ?y rdf:type ontology:fictional_character }
[]
phrase fictional character
Quantitative|Count|Mult. entity type|Clarification
Q40185
SYSTEM
Did you mean The Divine Comedy ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P361 resource:Q19031190 } UNION { ?y property:P361 resource:Q19031190 } UNION { ?z property:P361 resource:Q40185 } UNION { ?y property:P361 resource:Q40185 } UNION { ?z property:P361 resource:Q1960551 } UNION { ?y property:P361 resource:Q1960551 } UNION { ?z property:P361 resource:Q19031190 } UNION { ?y property:P361 resource:Q19031190 } } . ?z rdf:type ontology:Q187931 . ?y rdf:type ontology:Q95074 }
Did you mean The Divine Comedy ?
The Divine Comedy
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:part_of resource:Aeneid } UNION { ?y property:part_of resource:Aeneid } UNION { ?z property:part_of resource:The_Divine_Comedy } UNION { ?y property:part_of resource:The_Divine_Comedy } UNION { ?z property:part_of resource:Russian_Biographical_Dictionary } UNION { ?y property:part_of resource:Russian_Biographical_Dictionary } UNION { ?z property:part_of resource:Aeneid } UNION { ?y property:part_of resource:Aeneid } } . ?z rdf:type ontology:phrase . ?y rdf:type ontology:fictional_character }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Aeneid. Could you tell me the answer for that?
(c(Q187931),P361,Q60220) (c(Q95074),P361,Q60220) (c(Q187931),P361,Q40185) (c(Q95074),P361,Q40185) (c(Q187931),P361,Q1960551) (c(Q95074),P361,Q1960551) (c(Q187931),P361,Q60220) (c(Q95074),P361,Q60220)
Q60220
[{'concept': 'Q187931'}, 'P361', 'Q60220'] [{'concept': 'Q95074'}, 'P361', 'Q60220'] [{'concept': 'Q187931'}, 'P361', 'Q40185'] [{'concept': 'Q95074'}, 'P361', 'Q40185'] [{'concept': 'Q187931'}, 'P361', 'Q1960551'] [{'concept': 'Q95074'}, 'P361', 'Q1960551'] [{'concept': 'Q187931'}, 'P361', 'Q60220'] [{'concept': 'Q95074'}, 'P361', 'Q60220']
[{'concept': 'phrase'}, 'part of', 'Aeneid'] [{'concept': 'fictional character'}, 'part of', 'Aeneid'] [{'concept': 'phrase'}, 'part of', 'The Divine Comedy'] [{'concept': 'fictional character'}, 'part of', 'The Divine Comedy'] [{'concept': 'phrase'}, 'part of', 'Russian Biographical Dictionary'] [{'concept': 'fictional character'}, 'part of', 'Russian Biographical Dictionary'] [{'concept': 'phrase'}, 'part of', 'Aeneid'] [{'concept': 'fictional character'}, 'part of', 'Aeneid']
[]
SYSTEM
1 phrases and 1 fictional characters
Q305570 Q3930353
(c(Q187931),P361,Q60220) (c(Q95074),P361,Q60220) (c(Q187931),P361,Q40185) (c(Q95074),P361,Q40185) (c(Q187931),P361,Q1960551) (c(Q95074),P361,Q1960551) (c(Q187931),P361,Q60220) (c(Q95074),P361,Q60220)
[ANSWER]
[{'concept': 'Q187931'}, 'P361', 'Q60220'] [{'concept': 'Q95074'}, 'P361', 'Q60220'] [{'concept': 'Q187931'}, 'P361', 'Q40185'] [{'concept': 'Q95074'}, 'P361', 'Q40185'] [{'concept': 'Q187931'}, 'P361', 'Q1960551'] [{'concept': 'Q95074'}, 'P361', 'Q1960551'] [{'concept': 'Q187931'}, 'P361', 'Q60220'] [{'concept': 'Q95074'}, 'P361', 'Q60220']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P361 resource:Q19031190 } UNION { ?y property:P361 resource:Q19031190 } UNION { ?z property:P361 resource:Q40185 } UNION { ?y property:P361 resource:Q40185 } UNION { ?z property:P361 resource:Q1960551 } UNION { ?y property:P361 resource:Q1960551 } UNION { ?z property:P361 resource:Q19031190 } UNION { ?y property:P361 resource:Q19031190 } } . ?z rdf:type ontology:Q187931 . ?y rdf:type ontology:Q95074 }
Abaris Rari nantes in gurgite vasto
1 phrases and 1 fictional characters
[{'concept': 'phrase'}, 'part of', 'Aeneid'] [{'concept': 'fictional character'}, 'part of', 'Aeneid'] [{'concept': 'phrase'}, 'part of', 'The Divine Comedy'] [{'concept': 'fictional character'}, 'part of', 'The Divine Comedy'] [{'concept': 'phrase'}, 'part of', 'Russian Biographical Dictionary'] [{'concept': 'fictional character'}, 'part of', 'Russian Biographical Dictionary'] [{'concept': 'phrase'}, 'part of', 'Aeneid'] [{'concept': 'fictional character'}, 'part of', 'Aeneid']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:part_of resource:Aeneid } UNION { ?y property:part_of resource:Aeneid } UNION { ?z property:part_of resource:The_Divine_Comedy } UNION { ?y property:part_of resource:The_Divine_Comedy } UNION { ?z property:part_of resource:Russian_Biographical_Dictionary } UNION { ?y property:part_of resource:Russian_Biographical_Dictionary } UNION { ?z property:part_of resource:Aeneid } UNION { ?y property:part_of resource:Aeneid } } . ?z rdf:type ontology:phrase . ?y rdf:type ontology:fictional_character }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3828461
P674
Q6619679 Q95074 Q223393
USER
How many literary genres have the character more number of fictional humanoids and fictional characters than Wings in the Night ?
(c(Q223393),P674,c(Q6619679)|c(Q95074))
action count
action greater
action union
action find_tuple_counts
relation P674
type Q223393
type Q6619679
action find_tuple_counts
relation P674
type Q223393
type Q95074
action count
action filter_multi_types
action find
entity Q3828461
relation P674
type Q6619679
type Q95074
[{'concept': 'Q223393'}, 'P674', [{'concept': 'Q6619679'}, {'concept': 'Q95074'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?w ) WHERE { ?z rdf:type ?p . VALUES ( ?p ) { ( ontology:Q6619679 ) ( ontology:Q95074 ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { resource:Q3828461 property:P674 ?g . { VALUES ( ?c ) { ( ontology:Q6619679 ) ( ontology:Q95074 ) } . ?g rdf:type ?c } } } . FILTER ( ?w > ?j ) }
Wings in the Night
action count
action greater
action union
action find_tuple_counts
relation characters
type literary genre
type fictional humanoid
action find_tuple_counts
relation characters
type literary genre
type fictional character
action count
action filter_multi_types
action find
entity Wings in the Night
relation characters
type fictional humanoid
type fictional character
[{'concept': 'literary genre'}, 'characters', [{'concept': 'fictional humanoid'}, {'concept': 'fictional character'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?w ) WHERE { ?z rdf:type ?p . VALUES ( ?p ) { ( ontology:fictional_humanoid ) ( ontology:fictional_character ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { resource:Wings_in_the_Night property:characters ?g . { VALUES ( ?c ) { ( ontology:fictional_humanoid ) ( ontology:fictional_character ) } . ?g rdf:type ?c } } } . FILTER ( ?w > ?j ) }
[]
fictional humanoid fictional character literary genre
SYSTEM
91
Q15090995 Q692374 Q240358 Q17631737 Q15091341 Q16653695 Q1122722 Q15090981 Q15090984 Q978891 Q531676 Q40185 Q15091014 Q2090062 Q15091019 Q15091344 Q27037201 Q15091290 Q831556 Q3986390 Q15091000 Q1747447 Q1753161 Q7718450 Q15091166 Q4395895 Q15091168 Q1069560 Q15091284 Q765615 Q1443582 Q15091287 Q15091280 Q11716256 Q15091066 Q11841 Q15091329 Q15091070 Q15091073 Q60220 Q15091325 Q5984367 Q266395 Q15090953 Q8275 Q11831 Q15091102 Q2891432 Q4134557 Q1061779 Q13390016 Q383811 Q15091334 Q7540460 Q6189671 Q15091297 Q5984390 Q9362463 Q3792660 Q15091119 Q15091115 Q15091005 Q15091304 Q15091301 Q4369850 Q15091125 Q15091122 Q16651073 Q3223440 Q15074331 Q16654047 Q18600581 Q15091129 Q2891519 Q15091314 Q4378273 Q781898 Q4439291 Q6367266 Q15090967 Q650791 Q1088946 Q16651670 Q15091137 Q5984401 Q9192501 Q977202 Q2512207 Q2891569 Q2891564 Q2966018
(c(Q223393),P674,c(Q6619679)|c(Q95074))
action count
action greater
action union
action find_tuple_counts
relation P674
type Q223393
type Q6619679
action find_tuple_counts
relation P674
type Q223393
type Q95074
action count
action filter_multi_types
action find
entity Q3828461
relation P674
type Q6619679
type Q95074
[ANSWER]
[{'concept': 'Q223393'}, 'P674', [{'concept': 'Q6619679'}, {'concept': 'Q95074'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?w ) WHERE { ?z rdf:type ?p . VALUES ( ?p ) { ( ontology:Q6619679 ) ( ontology:Q95074 ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { resource:Q3828461 property:P674 ?g . { VALUES ( ?c ) { ( ontology:Q6619679 ) ( ontology:Q95074 ) } . ?g rdf:type ?c } } } . FILTER ( ?w > ?j ) }
Counterfeit for Murder Galley Slave Batman: The Killing Joke The Herb of Death Invitation to Murder The Double Clue All Star Batman and Robin the Boy Wonder Cordially Invited to Meet Death Omit Flowers A Dame to Kill For Queen of the Black Coast The Divine Comedy Immune to Murder Beyond the Black River Man Alive Kill Now—Pay Later Aliens: Field Report Bullet for One Mirror Image The Complete Peanuts Death of a Demon The Scarlet Citadel Black Colossus The Black Stranger Door to Death A Witch Shall be Born Die Like a Dog The Frost-Giant's Daughter This Won't Kill You The Pool of the Black One Batman versus Predator Not Quite Dead Enough The Next Witness Come va il vostro giardino? Disguise for Murder Cinderella Easter Parade Blood Will Tell Instead of Evidence Aeneid Murder Is No Joke Poison à la Carte Batman: A Death in the Family The Cop-Killer Iliad Snow White Christmas Party Batman: Ego Red Nails The Tower of the Elephant Murder Is Corny Batman: Year One Booby Trap Slight Rebellion off Madison Jewels of Gwahlur Black Orchids Method Three for Murder Triangle at Rhodes The God in the Bowl Too Many Detectives The Gun with Wings Bitter End Before I Die Fourth of July Picnic Xuthal of the Dusk The Squirt and the Monkey Help Wanted, Male The Plymouth Express Wasps' Nest A Window for Death The Mystery of the Spanish Chest Day One, Tale One of the Decameron Home to Roost The Joker: Devil's Advocate When a Man Murders The Man-Eaters of Zamboula Os Lusíadas The Devil in Iron The Blue Cross Eeny Meeny Murder Mo The People of the Black Circle Rogues in the House The Chocolate Box The Zero Clue The Rodeo Murder Iron Shadows in the Moon The Hard Goodbye The Phoenix on the Sword Batman and the Mad Monk Alternative versions of Captain America#Elseworlds The Adventure of the Christmas Pudding
91
action count
action greater
action union
action find_tuple_counts
relation characters
type literary genre
type fictional humanoid
action find_tuple_counts
relation characters
type literary genre
type fictional character
action count
action filter_multi_types
action find
entity Wings in the Night
relation characters
type fictional humanoid
type fictional character
[{'concept': 'literary genre'}, 'characters', [{'concept': 'fictional humanoid'}, {'concept': 'fictional character'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?w ) WHERE { ?z rdf:type ?p . VALUES ( ?p ) { ( ontology:fictional_humanoid ) ( ontology:fictional_character ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { resource:Wings_in_the_Night property:characters ?g . { VALUES ( ?c ) { ( ontology:fictional_humanoid ) ( ontology:fictional_character ) } . ?g rdf:type ?c } } } . FILTER ( ?w > ?j ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1860 Q40185
P364 P144
Q838948
USER
Which works of art build on The Divine Comedy and were originally created in English language ?
AND((c(Q838948),P144,Q40185), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q40185
relation P144
action find_reverse
entity Q1860
relation P364
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P144', 'Q40185'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q838948 . ?l property:P364 resource:Q1860 . ?l property:P144 resource:Q40185 }
English The Divine Comedy
action filter_type
action intersection
action find_reverse
entity The Divine Comedy
relation based on
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'based on', 'The Divine Comedy'], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:work_of_art . ?l property:original_language_of_work resource:English . ?l property:based_on resource:The_Divine_Comedy }
[]
work of art
Q1130910
SYSTEM
Dante's Inferno
Q1130910
AND((c(Q838948),P144,Q40185), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q40185
relation P144
action find_reverse
entity Q1860
relation P364
type Q838948
[ANSWER] build on The Divine Comedy and were originally created in English language
{'AND': [[{'concept': 'Q838948'}, 'P144', 'Q40185'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q838948 . ?l property:P364 resource:Q1860 . ?l property:P144 resource:Q40185 }
Dante's Inferno
Dante's Inferno build on The Divine Comedy and were originally created in English language
Dante's Inferno
action filter_type
action intersection
action find_reverse
entity The Divine Comedy
relation based on
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'based on', 'The Divine Comedy'], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:work_of_art . ?l property:original_language_of_work resource:English . ?l property:based_on resource:The_Divine_Comedy }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1130910 Q40185
P144
Q223393
USER
Is that work of art a fork of The Divine Comedy ?
(Q1130910,P144,Q40185)
action is_in
entity Q40185
action find
entity Q1130910
relation P144
['Q1130910', 'P144', 'Q40185']
ASK WHERE { resource:Q1130910 property:P144 resource:Q40185 }
Dante's Inferno The Divine Comedy
action is_in
entity The Divine Comedy
action find
entity Dante's Inferno
relation based on
["Dante's Inferno", 'based on', 'The Divine Comedy']
ASK WHERE { resource:Dante's_Inferno property:based_on resource:The_Divine_Comedy }
[]
literary genre
SYSTEM
YES
(Q1130910,P144,Q40185)
action is_in
entity Q40185
action find
entity Q1130910
relation P144
[ANSWER]
['Q1130910', 'P144', 'Q40185']
ASK WHERE { resource:Q1130910 property:P144 resource:Q40185 }
Yes
action is_in
entity The Divine Comedy
action find
entity Dante's Inferno
relation based on
["Dante's Inferno", 'based on', 'The Divine Comedy']
ASK WHERE { resource:Dante's_Inferno property:based_on resource:The_Divine_Comedy }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q15731902
P1445
Q838948 Q386724
USER
Which works are set up by around the same number of works of art as Aladdin media franchise ?
(c(Q386724),P1445,c(Q838948))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q15731902
relation P1445
type Q386724
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { ?p rdf:type ontology:Q386724 . resource:Q15731902 property:P1445 ?p } } . FILTER ( ?w = ?i ) . { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?w ) WHERE { ?e property:P1445 ?a . ?a rdf:type ontology:Q838948 . ?e rdf:type ontology:Q386724 } GROUP BY ?e } }
Aladdin media franchise
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Aladdin media franchise
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { ?p rdf:type ontology:work . resource:Aladdin_media_franchise property:fictional_universe_described_in ?p } } . FILTER ( ?w = ?i ) . { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?w ) WHERE { ?e property:fictional_universe_described_in ?a . ?a rdf:type ontology:work_of_art . ?e rdf:type ontology:work } GROUP BY ?e } }
[]
work of art work
Q1203222 Q15731902 Q11927
SYSTEM
Shrek, Aladdin media franchise, Stargate
Q1203222 Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q838948))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q15731902
relation P1445
type Q386724
[ANSWERS] are set up by around the same number of works of art as Aladdin media franchise
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { ?p rdf:type ontology:Q386724 . resource:Q15731902 property:P1445 ?p } } . FILTER ( ?w = ?i ) . { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?w ) WHERE { ?e property:P1445 ?a . ?a rdf:type ontology:Q838948 . ?e rdf:type ontology:Q386724 } GROUP BY ?e } }
Shrek Aladdin media franchise Stargate The Walking Dead
Shrek, Aladdin media franchise and Stargate are set up by around the same number of works of art as Aladdin media franchise
Shrek Aladdin media franchise Stargate
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Aladdin media franchise
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { ?p rdf:type ontology:work . resource:Aladdin_media_franchise property:fictional_universe_described_in ?p } } . FILTER ( ?w = ?i ) . { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?w ) WHERE { ?e property:fictional_universe_described_in ?a . ?a rdf:type ontology:work_of_art . ?e rdf:type ontology:work } GROUP BY ?e } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1203222
P1445
Q838948 Q386724
USER
And what about Shrek?
(c(Q386724),P1445,c(Q838948))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q1203222
relation P1445
type Q386724
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?y ) WHERE { ?g property:P1445 ?k . ?g rdf:type ontology:Q386724 . ?k rdf:type ontology:Q838948 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Q1203222 property:P1445 ?v . ?v rdf:type ontology:Q386724 } } . FILTER ( ?y = ?d ) }
Shrek
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Shrek
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?y ) WHERE { ?g property:fictional_universe_described_in ?k . ?g rdf:type ontology:work . ?k rdf:type ontology:work_of_art } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Shrek property:fictional_universe_described_in ?v . ?v rdf:type ontology:work } } . FILTER ( ?y = ?d ) }
[]
work of art work
Q1203222 Q15731902 Q11927
SYSTEM
Shrek, Aladdin media franchise, Stargate
Q1203222 Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q838948))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q1203222
relation P1445
type Q386724
[ANSWERS]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?y ) WHERE { ?g property:P1445 ?k . ?g rdf:type ontology:Q386724 . ?k rdf:type ontology:Q838948 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Q1203222 property:P1445 ?v . ?v rdf:type ontology:Q386724 } } . FILTER ( ?y = ?d ) }
Shrek Aladdin media franchise Stargate The Walking Dead
Shrek Aladdin media franchise Stargate
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Shrek
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?y ) WHERE { ?g property:fictional_universe_described_in ?k . ?g rdf:type ontology:work . ?k rdf:type ontology:work_of_art } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Shrek property:fictional_universe_described_in ?v . ?v rdf:type ontology:work } } . FILTER ( ?y = ?d ) }
[]