Simple Question (Direct)
Simple Question
Q3769235
P26
Q502895
USER
Which person is the spouse of Giulia Beccaria ?
(Q3769235,P26,c(Q502895))
action filter_type
action find
entity Q3769235
relation P26
type Q502895
['Q3769235', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q3769235 property:P26 ?l . ?l rdf:type ontology:Q502895 }
Giulia Beccaria
action filter_type
action find
entity Giulia Beccaria
relation spouse
type common name
['Giulia Beccaria', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Giulia_Beccaria property:spouse ?l . ?l rdf:type ontology:common_name }
[]
common name
Q3904035
SYSTEM
Pietro Manzoni
Q3904035
(Q3769235,P26,c(Q502895))
action filter_type
action find
entity Q3769235
relation P26
type Q502895
[ANSWER] is the spouse of Giulia Beccaria
['Q3769235', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q3769235 property:P26 ?l . ?l rdf:type ontology:Q502895 }
Pietro Manzoni
Pietro Manzoni is the spouse of Giulia Beccaria
Pietro Manzoni
action filter_type
action find
entity Giulia Beccaria
relation spouse
type common name
['Giulia Beccaria', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Giulia_Beccaria property:spouse ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3904035
P20
Q56061
USER
Where did that person expire ?
(Q3904035,P20,c(Q56061))
action filter_type
action find
entity Q3904035
relation P20
type Q56061
['Q3904035', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q3904035 property:P20 ?n . ?n rdf:type ontology:Q56061 }
Pietro Manzoni
action filter_type
action find
entity Pietro Manzoni
relation place of death
type administrative territorial entity
['Pietro Manzoni', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Pietro_Manzoni property:place_of_death ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q490
SYSTEM
Milan
Q490
(Q3904035,P20,c(Q56061))
action filter_type
action find
entity Q3904035
relation P20
type Q56061
That person expired in [ANSWER]
['Q3904035', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q3904035 property:P20 ?n . ?n rdf:type ontology:Q56061 }
Milan
That person expired in Milan
Milan
action filter_type
action find
entity Pietro Manzoni
relation place of death
type administrative territorial entity
['Pietro Manzoni', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Pietro_Manzoni property:place_of_death ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q490 Q16621839
P19
Q502895
USER
Was Vincenzo Messina born at that administrative territory ?
(Q16621839,P19,Q490)
action is_in
entity Q490
action find
entity Q16621839
relation P19
['Q16621839', 'P19', 'Q490']
ASK WHERE { resource:Q16621839 property:P19 resource:Q490 }
Milan Vincenzo Messina
action is_in
entity Milan
action find
entity Vincenzo Messina
relation place of birth
['Vincenzo Messina', 'place of birth', 'Milan']
ASK WHERE { resource:Vincenzo_Messina property:place_of_birth resource:Milan }
[]
common name
SYSTEM
YES
(Q16621839,P19,Q490)
action is_in
entity Q490
action find
entity Q16621839
relation P19
[ANSWER]
['Q16621839', 'P19', 'Q490']
ASK WHERE { resource:Q16621839 property:P19 resource:Q490 }
Yes
action is_in
entity Milan
action find
entity Vincenzo Messina
relation place of birth
['Vincenzo Messina', 'place of birth', 'Milan']
ASK WHERE { resource:Vincenzo_Messina property:place_of_birth resource:Milan }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q3769235
P25 P21
Q502895
USER
Which people have Giulia Beccaria as a mother and are a male ?
AND((c(Q502895),P25,Q3769235), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3769235
relation P25
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P25', 'Q3769235'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?w WHERE { ?w property:P25 resource:Q3769235 . ?w property:P21 resource:Q6581097 . ?w rdf:type ontology:Q502895 }
male Giulia Beccaria
action filter_type
action intersection
action find_reverse
entity Giulia Beccaria
relation mother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'mother', 'Giulia Beccaria'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?w WHERE { ?w property:mother resource:Giulia_Beccaria . ?w property:gender resource:male . ?w rdf:type ontology:common_name }
[]
common name
Q1064
SYSTEM
Alessandro Manzoni
Q1064
AND((c(Q502895),P25,Q3769235), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3769235
relation P25
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Giulia Beccaria as a mother and are a male
{'AND': [[{'concept': 'Q502895'}, 'P25', 'Q3769235'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?w WHERE { ?w property:P25 resource:Q3769235 . ?w property:P21 resource:Q6581097 . ?w rdf:type ontology:Q502895 }
Alessandro Manzoni
Alessandro Manzoni have Giulia Beccaria as a mother and are a male
Alessandro Manzoni
action filter_type
action intersection
action find_reverse
entity Giulia Beccaria
relation mother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'mother', 'Giulia Beccaria'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?w WHERE { ?w property:mother resource:Giulia_Beccaria . ?w property:gender resource:male . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1064
P551
Q56061
USER
Which administrative territory was that person a resident of ?
(Q1064,P551,c(Q56061))
action filter_type
action find
entity Q1064
relation P551
type Q56061
['Q1064', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q1064 property:P551 ?r . ?r rdf:type ontology:Q56061 }
Alessandro Manzoni
action filter_type
action find
entity Alessandro Manzoni
relation residence
type administrative territorial entity
['Alessandro Manzoni', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Alessandro_Manzoni property:residence ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q490
SYSTEM
Milan
Q490
(Q1064,P551,c(Q56061))
action filter_type
action find
entity Q1064
relation P551
type Q56061
[ANSWER] was that person a resident of
['Q1064', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q1064 property:P551 ?r . ?r rdf:type ontology:Q56061 }
Milan
Milan was that person a resident of
Milan
action filter_type
action find
entity Alessandro Manzoni
relation residence
type administrative territorial entity
['Alessandro Manzoni', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Alessandro_Manzoni property:residence ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q490 Q17306239
P20
Q502895
USER
Did Mimi Martel die in that administrative territory ?
(Q17306239,P20,Q490)
action is_in
entity Q17306239
action find
entity Q490
relation P20
['Q17306239', 'P20', 'Q490']
ASK WHERE { resource:Q490 property:P20 resource:Q17306239 }
Milan Mimi Martel
action is_in
entity Mimi Martel
action find
entity Milan
relation place of death
['Mimi Martel', 'place of death', 'Milan']
ASK WHERE { resource:Milan property:place_of_death resource:Mimi_Martel }
[]
common name
SYSTEM
NO
(Q17306239,P20,Q490)
action is_in
entity Q17306239
action find
entity Q490
relation P20
[ANSWER]
['Q17306239', 'P20', 'Q490']
ASK WHERE { resource:Q490 property:P20 resource:Q17306239 }
No
action is_in
entity Mimi Martel
action find
entity Milan
relation place of death
['Mimi Martel', 'place of death', 'Milan']
ASK WHERE { resource:Milan property:place_of_death resource:Mimi_Martel }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1064
P119
Q43229
USER
Where was Alessandro Manzoni buried ?
(Q1064,P119,c(Q43229))
action filter_type
action find
entity Q1064
relation P119
type Q43229
['Q1064', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?h WHERE { resource:Q1064 property:P119 ?h . ?h rdf:type ontology:Q43229 }
Alessandro Manzoni
action filter_type
action find
entity Alessandro Manzoni
relation place of burial
type organization
['Alessandro Manzoni', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?h WHERE { resource:Alessandro_Manzoni property:place_of_burial ?h . ?h rdf:type ontology:organization }
[]
organization
Q608405
SYSTEM
Cimitero Monumentale di Milano
Q608405
(Q1064,P119,c(Q43229))
action filter_type
action find
entity Q1064
relation P119
type Q43229
Alessandro Manzoni was buried in [ANSWER]
['Q1064', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?h WHERE { resource:Q1064 property:P119 ?h . ?h rdf:type ontology:Q43229 }
Cimitero Monumentale di Milano
Alessandro Manzoni was buried in Cimitero Monumentale di Milano
Cimitero Monumentale di Milano
action filter_type
action find
entity Alessandro Manzoni
relation place of burial
type organization
['Alessandro Manzoni', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?h WHERE { resource:Alessandro_Manzoni property:place_of_burial ?h . ?h rdf:type ontology:organization }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q608405 Q5539013
P119
Q502895
USER
Does George Ernest Halpenny have that organization as his/her tomb ?
(Q5539013,P119,Q608405)
action is_in
entity Q5539013
action find
entity Q608405
relation P119
['Q5539013', 'P119', 'Q608405']
ASK WHERE { resource:Q608405 property:P119 resource:Q5539013 }
Cimitero Monumentale di Milano George Ernest Halpenny
action is_in
entity George Ernest Halpenny
action find
entity Cimitero Monumentale di Milano
relation place of burial
['George Ernest Halpenny', 'place of burial', 'Cimitero Monumentale di Milano']
ASK WHERE { resource:Cimitero_Monumentale_di_Milano property:place_of_burial resource:George_Ernest_Halpenny }
[]
common name
SYSTEM
NO
(Q5539013,P119,Q608405)
action is_in
entity Q5539013
action find
entity Q608405
relation P119
[ANSWER]
['Q5539013', 'P119', 'Q608405']
ASK WHERE { resource:Q608405 property:P119 resource:Q5539013 }
No
action is_in
entity George Ernest Halpenny
action find
entity Cimitero Monumentale di Milano
relation place of burial
['George Ernest Halpenny', 'place of burial', 'Cimitero Monumentale di Milano']
ASK WHERE { resource:Cimitero_Monumentale_di_Milano property:place_of_burial resource:George_Ernest_Halpenny }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q433708 Q1064
P50
Q2342494
USER
Which collectables are written by Alessandro Manzoni or Jack Higgins ?
OR((c(Q2342494),P50,Q1064), (c(Q2342494),P50,Q433708))
action filter_type
action union
action find_reverse
entity Q1064
relation P50
action find_reverse
entity Q433708
relation P50
type Q2342494
{'OR': [[{'concept': 'Q2342494'}, 'P50', 'Q1064'], [{'concept': 'Q2342494'}, 'P50', 'Q433708']]}
SELECT DISTINCT ?x WHERE { { ?x property:P50 ?q . VALUES ( ?q ) { ( resource:Q1064 ) ( resource:Q433708 ) } } . ?x rdf:type ontology:Q2342494 }
Jack Higgins Alessandro Manzoni
action filter_type
action union
action find_reverse
entity Alessandro Manzoni
relation author
action find_reverse
entity Jack Higgins
relation author
type collectable
{'OR': [[{'concept': 'collectable'}, 'author', 'Alessandro Manzoni'], [{'concept': 'collectable'}, 'author', 'Jack Higgins']]}
SELECT DISTINCT ?x WHERE { { ?x property:author ?q . VALUES ( ?q ) { ( resource:Alessandro_Manzoni ) ( resource:Jack_Higgins ) } } . ?x rdf:type ontology:collectable }
[]
collectable
Q16968693 Q7737602 Q28491 Q18164654 Q16385016 Q7744360 Q7731337 Q19840486 Q1192103 Q5459295
SYSTEM
Some of them are Rough Justice, The Graveyard Shift, The Betrothed, Wrath of the Lion, A Darker Place, The Killing Ground, The Eagle Has Flown, Night of the Fox, The Eagle Has Landed, Flight of Eagles
Q6842779 Q7737602 Q7744360 Q7731337 Q7799008 Q5459295 Q16386612 Q1192103 Q19840486 Q16968693 Q18164654 Q4656762 Q15733485 Q16385016 Q7620186 Q4762327 Q5242945 Q28491
OR((c(Q2342494),P50,Q1064), (c(Q2342494),P50,Q433708))
action filter_type
action union
action find_reverse
entity Q1064
relation P50
action find_reverse
entity Q433708
relation P50
type Q2342494
[ANSWERS]
{'OR': [[{'concept': 'Q2342494'}, 'P50', 'Q1064'], [{'concept': 'Q2342494'}, 'P50', 'Q433708']]}
SELECT DISTINCT ?x WHERE { { ?x property:P50 ?q . VALUES ( ?q ) { ( resource:Q1064 ) ( resource:Q433708 ) } } . ?x rdf:type ontology:Q2342494 }
Midnight Runner The Graveyard Shift The Killing Ground The Eagle Has Flown Thunder Point Flight of Eagles The Last Place God Made The Eagle Has Landed Night of the Fox Rough Justice Wrath of the Lion A Fine Night for Dying Itala antologio A Darker Place Storm Warning Angel of Death Day of Reckoning The Betrothed
Night of the Fox, The Eagle has Landed and Flight of Eagles are written by Alessandro Manzoni or Jack Higgins
Rough Justice The Graveyard Shift The Betrothed Wrath of the Lion A Darker Place The Killing Ground The Eagle Has Flown Night of the Fox The Eagle Has Landed Flight of Eagles
action filter_type
action union
action find_reverse
entity Alessandro Manzoni
relation author
action find_reverse
entity Jack Higgins
relation author
type collectable
{'OR': [[{'concept': 'collectable'}, 'author', 'Alessandro Manzoni'], [{'concept': 'collectable'}, 'author', 'Jack Higgins']]}
SELECT DISTINCT ?x WHERE { { ?x property:author ?q . VALUES ( ?q ) { ( resource:Alessandro_Manzoni ) ( resource:Jack_Higgins ) } } . ?x rdf:type ontology:collectable }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7106509 Q3904035
P57 P26
Q502895
USER
Which people are married to Pietro Manzoni or were the director of Osey Ramulamma ?
OR((Q3904035,P26,c(Q502895)), (Q7106509,P57,c(Q502895)))
action filter_type
action union
action find
entity Q3904035
relation P26
action find
entity Q7106509
relation P57
type Q502895
{'OR': [['Q3904035', 'P26', {'concept': 'Q502895'}], ['Q7106509', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q3904035 property:P26 ?i } UNION { resource:Q7106509 property:P57 ?i } } . ?i rdf:type ontology:Q502895 }
Osey Ramulamma Pietro Manzoni
action filter_type
action union
action find
entity Pietro Manzoni
relation spouse
action find
entity Osey Ramulamma
relation director
type common name
{'OR': [['Pietro Manzoni', 'spouse', {'concept': 'common name'}], ['Osey Ramulamma', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Pietro_Manzoni property:spouse ?i } UNION { resource:Osey_Ramulamma property:director ?i } } . ?i rdf:type ontology:common_name }
[]
common name
Q3769235 Q3595535
SYSTEM
Giulia Beccaria, Dasari Narayana Rao
Q3769235 Q3595535
OR((Q3904035,P26,c(Q502895)), (Q7106509,P57,c(Q502895)))
action filter_type
action union
action find
entity Q3904035
relation P26
action find
entity Q7106509
relation P57
type Q502895
[ANSWERS] are married to Pietro Manzoni or were the director of Osey Ramulamma
{'OR': [['Q3904035', 'P26', {'concept': 'Q502895'}], ['Q7106509', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q3904035 property:P26 ?i } UNION { resource:Q7106509 property:P57 ?i } } . ?i rdf:type ontology:Q502895 }
Giulia Beccaria Dasari Narayana Rao
Giulia Beccaria and Dasari Narayana Rao are married to Pietro Manzoni or were the director of Osey Ramulamma
Giulia Beccaria Dasari Narayana Rao
action filter_type
action union
action find
entity Pietro Manzoni
relation spouse
action find
entity Osey Ramulamma
relation director
type common name
{'OR': [['Pietro Manzoni', 'spouse', {'concept': 'common name'}], ['Osey Ramulamma', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Pietro_Manzoni property:spouse ?i } UNION { resource:Osey_Ramulamma property:director ?i } } . ?i rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q8057612
P144
Q277759 Q2342494 Q2342494
USER
Which collectables are based on approximately the same number of book series and collectables as You Will Go to the Moon ?
(c(Q2342494),P144,c(Q277759)|c(Q2342494))
action approx
action union
action find_tuple_counts
relation P144
type Q2342494
type Q277759
action find_tuple_counts
relation P144
type Q2342494
type Q2342494
action count
action filter_multi_types
action find
entity Q8057612
relation P144
type Q277759
type Q2342494
[{'concept': 'Q2342494'}, 'P144', [{'concept': 'Q277759'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?d WHERE { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:Q277759 ) ( ontology:Q2342494 ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { { ?u rdf:type ontology:Q2342494 } UNION { ?u rdf:type ontology:Q277759 } } . resource:Q8057612 property:P144 ?u } } . FILTER ( ?l = ?i ) }
You Will Go to the Moon
action approx
action union
action find_tuple_counts
relation based on
type collectable
type book series
action find_tuple_counts
relation based on
type collectable
type collectable
action count
action filter_multi_types
action find
entity You Will Go to the Moon
relation based on
type book series
type collectable
[{'concept': 'collectable'}, 'based on', [{'concept': 'book series'}, {'concept': 'collectable'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?d WHERE { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:book_series ) ( ontology:collectable ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { { ?u rdf:type ontology:collectable } UNION { ?u rdf:type ontology:book_series } } . resource:You_Will_Go_to_the_Moon property:based_on ?u } } . FILTER ( ?l = ?i ) }
[]
book series collectable collectable
Q847426 Q4727821 Q3107329
SYSTEM
The Devotion of Suspect X, All-Consuming Fire, The Hitchhiker's Guide to the Galaxy
Q5385376 Q24717823 Q175020 Q26214657 Q2614669 Q1213312 Q896294 Q7734234 Q4727821 Q847426 Q8057612 Q16466017 Q7763420 Q7631568 Q12040379 Q7578765 Q137869 Q7601035 Q6129984 Q1106479 Q1192034 Q1171108 Q16062408 Q896822 Q4656004 Q5364958 Q5849514 Q2659311 Q4686701 Q5979550 Q3497005 Q5439453 Q26706229 Q5291021 Q6005315 Q279676 Q4759455 Q169976 Q4189809 Q20949795 Q15096441 Q4502764 Q3611744 Q2756027 Q4657060 Q4317887 Q3735626 Q5241061 Q3831442 Q21203529 Q19867018 Q13423107 Q3107329 Q6522562 Q16953491 Q2316049 Q2572480
(c(Q2342494),P144,c(Q277759)|c(Q2342494))
action approx
action union
action find_tuple_counts
relation P144
type Q2342494
type Q277759
action find_tuple_counts
relation P144
type Q2342494
type Q2342494
action count
action filter_multi_types
action find
entity Q8057612
relation P144
type Q277759
type Q2342494
[ANSWERS] are based on approximately the same number of book series and collectables as You Will Go to the Moon
[{'concept': 'Q2342494'}, 'P144', [{'concept': 'Q277759'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?d WHERE { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:Q277759 ) ( ontology:Q2342494 ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { { ?u rdf:type ontology:Q2342494 } UNION { ?u rdf:type ontology:Q277759 } } . resource:Q8057612 property:P144 ?u } } . FILTER ( ?l = ?i ) }
Erec y Enide Shakuntala Asterix Conquers Rome Rajmala The House of Silk The Heathens of Kummerow Cycle of Hatred The Fish That Saved Pittsburgh All-Consuming Fire The Devotion of Suspect X You Will Go to the Moon Serenity The Seven-Per-Cent Solution Submarine: A Guided Tour Inside a Nuclear Warship Nanobook Spock, Messiah! Germinal Star Trek James Bond and Moonraker An Inconvenient Truth Star Wars Episode II: Attack of the Clones The Barsac Mission Long Way Down World of Warcraft: Beyond the Dark Portal A Colder War Kizumonogatari Estoria de los godos Pride and Prejudice and Zombies Adversary in the House I Want a Dog Star Wars Episode I: The Phantom Menace Fearless Grzimeks Enzyklopädie Dominion Immortal Michael Kohlhaas Android Karenina Northern Lights Star Wars Episode III: Revenge of the Sith Epitome of Astronomy Nightfall Halloween Alien Fingersmith A Glimpse of Hell Nightbringer Black Coffee Legacy of Blood The Lexicon: An Unauthorized Guide to Harry Potter Fiction and Related Materials Welcome to Night Vale Baldur's Gate II: The Throne of Bhaal 1001 Vrouwen uit de Nederlandse geschiedenis The Hitchhiker's Guide to the Galaxy Lenin The 34th Rule Revised Version The Amityville Horror
The Devotion of Suspect X, All-Consuming Fire and The Hitchhiker's Guide to the Galaxy are based on approximately the same number of book series and collectables as You Will Go to the Moon
The Devotion of Suspect X All-Consuming Fire The Hitchhiker's Guide to the Galaxy
action approx
action union
action find_tuple_counts
relation based on
type collectable
type book series
action find_tuple_counts
relation based on
type collectable
type collectable
action count
action filter_multi_types
action find
entity You Will Go to the Moon
relation based on
type book series
type collectable
[{'concept': 'collectable'}, 'based on', [{'concept': 'book series'}, {'concept': 'collectable'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) ?d WHERE { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:book_series ) ( ontology:collectable ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { { ?u rdf:type ontology:collectable } UNION { ?u rdf:type ontology:book_series } } . resource:You_Will_Go_to_the_Moon property:based_on ?u } } . FILTER ( ?l = ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q5241061
P144
Q277759 Q2342494 Q2342494
USER
And what about Legacy of Blood?
(c(Q2342494),P144,c(Q277759)|c(Q2342494))
action approx
action union
action find_tuple_counts
relation P144
type Q2342494
type Q277759
action find_tuple_counts
relation P144
type Q2342494
type Q2342494
action count
action filter_multi_types
action find
entity Q5241061
relation P144
type Q277759
type Q2342494
[{'concept': 'Q2342494'}, 'P144', [{'concept': 'Q277759'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?p WHERE { { ?p property:P144 ?m . ?p rdf:type ontology:Q2342494 . ?m rdf:type ontology:Q2342494 } UNION { ?p rdf:type ontology:Q2342494 . ?m rdf:type ontology:Q277759 . ?p property:P144 ?m } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Q5241061 property:P144 ?y . { { ?y rdf:type ontology:Q277759 } UNION { ?y rdf:type ontology:Q2342494 } } } } . FILTER ( ?u = ?q ) }
Legacy of Blood
action approx
action union
action find_tuple_counts
relation based on
type collectable
type book series
action find_tuple_counts
relation based on
type collectable
type collectable
action count
action filter_multi_types
action find
entity Legacy of Blood
relation based on
type book series
type collectable
[{'concept': 'collectable'}, 'based on', [{'concept': 'book series'}, {'concept': 'collectable'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?p WHERE { { ?p property:based_on ?m . ?p rdf:type ontology:collectable . ?m rdf:type ontology:collectable } UNION { ?p rdf:type ontology:collectable . ?m rdf:type ontology:book_series . ?p property:based_on ?m } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Legacy_of_Blood property:based_on ?y . { { ?y rdf:type ontology:book_series } UNION { ?y rdf:type ontology:collectable } } } } . FILTER ( ?u = ?q ) }
[]
book series collectable collectable
Q847426 Q4727821 Q3107329
SYSTEM
The Devotion of Suspect X, All-Consuming Fire, The Hitchhiker's Guide to the Galaxy
Q5385376 Q24717823 Q175020 Q26214657 Q2614669 Q1213312 Q896294 Q7734234 Q4727821 Q847426 Q8057612 Q16466017 Q7763420 Q7631568 Q12040379 Q7578765 Q137869 Q7601035 Q6129984 Q1106479 Q1192034 Q1171108 Q16062408 Q896822 Q4656004 Q5364958 Q5849514 Q2659311 Q4686701 Q5979550 Q3497005 Q5439453 Q26706229 Q5291021 Q6005315 Q279676 Q4759455 Q169976 Q4189809 Q20949795 Q15096441 Q4502764 Q3611744 Q2756027 Q4657060 Q4317887 Q3735626 Q5241061 Q3831442 Q21203529 Q19867018 Q13423107 Q3107329 Q6522562 Q16953491 Q2316049 Q2572480
(c(Q2342494),P144,c(Q277759)|c(Q2342494))
action approx
action union
action find_tuple_counts
relation P144
type Q2342494
type Q277759
action find_tuple_counts
relation P144
type Q2342494
type Q2342494
action count
action filter_multi_types
action find
entity Q5241061
relation P144
type Q277759
type Q2342494
[ANSWERS]
[{'concept': 'Q2342494'}, 'P144', [{'concept': 'Q277759'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?p WHERE { { ?p property:P144 ?m . ?p rdf:type ontology:Q2342494 . ?m rdf:type ontology:Q2342494 } UNION { ?p rdf:type ontology:Q2342494 . ?m rdf:type ontology:Q277759 . ?p property:P144 ?m } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Q5241061 property:P144 ?y . { { ?y rdf:type ontology:Q277759 } UNION { ?y rdf:type ontology:Q2342494 } } } } . FILTER ( ?u = ?q ) }
Erec y Enide Shakuntala Asterix Conquers Rome Rajmala The House of Silk The Heathens of Kummerow Cycle of Hatred The Fish That Saved Pittsburgh All-Consuming Fire The Devotion of Suspect X You Will Go to the Moon Serenity The Seven-Per-Cent Solution Submarine: A Guided Tour Inside a Nuclear Warship Nanobook Spock, Messiah! Germinal Star Trek James Bond and Moonraker An Inconvenient Truth Star Wars Episode II: Attack of the Clones The Barsac Mission Long Way Down World of Warcraft: Beyond the Dark Portal A Colder War Kizumonogatari Estoria de los godos Pride and Prejudice and Zombies Adversary in the House I Want a Dog Star Wars Episode I: The Phantom Menace Fearless Grzimeks Enzyklopädie Dominion Immortal Michael Kohlhaas Android Karenina Northern Lights Star Wars Episode III: Revenge of the Sith Epitome of Astronomy Nightfall Halloween Alien Fingersmith A Glimpse of Hell Nightbringer Black Coffee Legacy of Blood The Lexicon: An Unauthorized Guide to Harry Potter Fiction and Related Materials Welcome to Night Vale Baldur's Gate II: The Throne of Bhaal 1001 Vrouwen uit de Nederlandse geschiedenis The Hitchhiker's Guide to the Galaxy Lenin The 34th Rule Revised Version The Amityville Horror
The Devotion of Suspect X All-Consuming Fire The Hitchhiker's Guide to the Galaxy
action approx
action union
action find_tuple_counts
relation based on
type collectable
type book series
action find_tuple_counts
relation based on
type collectable
type collectable
action count
action filter_multi_types
action find
entity Legacy of Blood
relation based on
type book series
type collectable
[{'concept': 'collectable'}, 'based on', [{'concept': 'book series'}, {'concept': 'collectable'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?p WHERE { { ?p property:based_on ?m . ?p rdf:type ontology:collectable . ?m rdf:type ontology:collectable } UNION { ?p rdf:type ontology:collectable . ?m rdf:type ontology:book_series . ?p property:based_on ?m } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Legacy_of_Blood property:based_on ?y . { { ?y rdf:type ontology:book_series } UNION { ?y rdf:type ontology:collectable } } } } . FILTER ( ?u = ?q ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P144
Q7725634 Q15416
USER
How many literary works or television programs are that collectable considered a copy of ?
(Q4727821,P144,c(Q7725634)) (Q4727821,P144,c(Q15416)) (Q847426,P144,c(Q7725634)) (Q847426,P144,c(Q15416)) (Q4727821,P144,c(Q7725634)) (Q4727821,P144,c(Q15416)) (Q3107329,P144,c(Q7725634)) (Q3107329,P144,c(Q15416))
['Q4727821', 'P144', {'concept': 'Q7725634'}] ['Q4727821', 'P144', {'concept': 'Q15416'}] ['Q847426', 'P144', {'concept': 'Q7725634'}] ['Q847426', 'P144', {'concept': 'Q15416'}] ['Q4727821', 'P144', {'concept': 'Q7725634'}] ['Q4727821', 'P144', {'concept': 'Q15416'}] ['Q3107329', 'P144', {'concept': 'Q7725634'}] ['Q3107329', 'P144', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q4727821 property:P144 ?z } UNION { resource:Q4727821 property:P144 ?y } UNION { resource:Q847426 property:P144 ?z } UNION { resource:Q847426 property:P144 ?y } UNION { resource:Q4727821 property:P144 ?z } UNION { resource:Q4727821 property:P144 ?y } UNION { resource:Q400913 property:P144 ?z } UNION { resource:Q400913 property:P144 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15416 }
['All-Consuming Fire', 'based on', {'concept': 'literary work'}] ['All-Consuming Fire', 'based on', {'concept': 'television program'}] ['The Devotion of Suspect X', 'based on', {'concept': 'literary work'}] ['The Devotion of Suspect X', 'based on', {'concept': 'television program'}] ['All-Consuming Fire', 'based on', {'concept': 'literary work'}] ['All-Consuming Fire', 'based on', {'concept': 'television program'}] ["The Hitchhiker's Guide to the Galaxy", 'based on', {'concept': 'literary work'}] ["The Hitchhiker's Guide to the Galaxy", 'based on', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:All-Consuming_Fire property:based_on ?z } UNION { resource:All-Consuming_Fire property:based_on ?y } UNION { resource:The_Devotion_of_Suspect_X property:based_on ?z } UNION { resource:The_Devotion_of_Suspect_X property:based_on ?y } UNION { resource:All-Consuming_Fire property:based_on ?z } UNION { resource:All-Consuming_Fire property:based_on ?y } UNION { resource:The_Hitchhiker's_Guide_to_the_Galaxy property:based_on ?z } UNION { resource:The_Hitchhiker's_Guide_to_the_Galaxy property:based_on ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:television_program }
[]
literary work television program
Quantitative|Count|Mult. entity type|Clarification
Q847426
SYSTEM
Did you mean The Devotion of Suspect X ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q4727821 property:P144 ?z } UNION { resource:Q4727821 property:P144 ?y } UNION { resource:Q847426 property:P144 ?z } UNION { resource:Q847426 property:P144 ?y } UNION { resource:Q4727821 property:P144 ?z } UNION { resource:Q4727821 property:P144 ?y } UNION { resource:Q400913 property:P144 ?z } UNION { resource:Q400913 property:P144 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15416 }
Did you mean The Devotion of Suspect X ?
The Devotion of Suspect X
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:All-Consuming_Fire property:based_on ?z } UNION { resource:All-Consuming_Fire property:based_on ?y } UNION { resource:The_Devotion_of_Suspect_X property:based_on ?z } UNION { resource:The_Devotion_of_Suspect_X property:based_on ?y } UNION { resource:All-Consuming_Fire property:based_on ?z } UNION { resource:All-Consuming_Fire property:based_on ?y } UNION { resource:The_Hitchhiker's_Guide_to_the_Galaxy property:based_on ?z } UNION { resource:The_Hitchhiker's_Guide_to_the_Galaxy property:based_on ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:television_program }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant All-Consuming Fire. Could you tell me the answer for that?
(Q4727821,P144,c(Q7725634)) (Q4727821,P144,c(Q15416)) (Q847426,P144,c(Q7725634)) (Q847426,P144,c(Q15416)) (Q4727821,P144,c(Q7725634)) (Q4727821,P144,c(Q15416)) (Q3107329,P144,c(Q7725634)) (Q3107329,P144,c(Q15416))
Q4727821
['Q4727821', 'P144', {'concept': 'Q7725634'}] ['Q4727821', 'P144', {'concept': 'Q15416'}] ['Q847426', 'P144', {'concept': 'Q7725634'}] ['Q847426', 'P144', {'concept': 'Q15416'}] ['Q4727821', 'P144', {'concept': 'Q7725634'}] ['Q4727821', 'P144', {'concept': 'Q15416'}] ['Q3107329', 'P144', {'concept': 'Q7725634'}] ['Q3107329', 'P144', {'concept': 'Q15416'}]
['All-Consuming Fire', 'based on', {'concept': 'literary work'}] ['All-Consuming Fire', 'based on', {'concept': 'television program'}] ['The Devotion of Suspect X', 'based on', {'concept': 'literary work'}] ['The Devotion of Suspect X', 'based on', {'concept': 'television program'}] ['All-Consuming Fire', 'based on', {'concept': 'literary work'}] ['All-Consuming Fire', 'based on', {'concept': 'television program'}] ["The Hitchhiker's Guide to the Galaxy", 'based on', {'concept': 'literary work'}] ["The Hitchhiker's Guide to the Galaxy", 'based on', {'concept': 'television program'}]
[]
SYSTEM
2
Q34316 Q2316684
(Q4727821,P144,c(Q7725634)) (Q4727821,P144,c(Q15416)) (Q847426,P144,c(Q7725634)) (Q847426,P144,c(Q15416)) (Q4727821,P144,c(Q7725634)) (Q4727821,P144,c(Q15416)) (Q3107329,P144,c(Q7725634)) (Q3107329,P144,c(Q15416))
[ANSWER]
['Q4727821', 'P144', {'concept': 'Q7725634'}] ['Q4727821', 'P144', {'concept': 'Q15416'}] ['Q847426', 'P144', {'concept': 'Q7725634'}] ['Q847426', 'P144', {'concept': 'Q15416'}] ['Q4727821', 'P144', {'concept': 'Q7725634'}] ['Q4727821', 'P144', {'concept': 'Q15416'}] ['Q3107329', 'P144', {'concept': 'Q7725634'}] ['Q3107329', 'P144', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q4727821 property:P144 ?z } UNION { resource:Q4727821 property:P144 ?y } UNION { resource:Q847426 property:P144 ?z } UNION { resource:Q847426 property:P144 ?y } UNION { resource:Q4727821 property:P144 ?z } UNION { resource:Q4727821 property:P144 ?y } UNION { resource:Q400913 property:P144 ?z } UNION { resource:Q400913 property:P144 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15416 }
Doctor Who canon of Sherlock Holmes
2
['All-Consuming Fire', 'based on', {'concept': 'literary work'}] ['All-Consuming Fire', 'based on', {'concept': 'television program'}] ['The Devotion of Suspect X', 'based on', {'concept': 'literary work'}] ['The Devotion of Suspect X', 'based on', {'concept': 'television program'}] ['All-Consuming Fire', 'based on', {'concept': 'literary work'}] ['All-Consuming Fire', 'based on', {'concept': 'television program'}] ["The Hitchhiker's Guide to the Galaxy", 'based on', {'concept': 'literary work'}] ["The Hitchhiker's Guide to the Galaxy", 'based on', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:All-Consuming_Fire property:based_on ?z } UNION { resource:All-Consuming_Fire property:based_on ?y } UNION { resource:The_Devotion_of_Suspect_X property:based_on ?z } UNION { resource:The_Devotion_of_Suspect_X property:based_on ?y } UNION { resource:All-Consuming_Fire property:based_on ?z } UNION { resource:All-Consuming_Fire property:based_on ?y } UNION { resource:The_Hitchhiker's_Guide_to_the_Galaxy property:based_on ?z } UNION { resource:The_Hitchhiker's_Guide_to_the_Galaxy property:based_on ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:television_program }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7064650 Q18164654
P50
Q502895
USER
Which people wrote Wrath of the Lion or November 1918: A German Revolution ?
OR((Q18164654,P50,c(Q502895)), (Q7064650,P50,c(Q502895)))
action filter_type
action union
action find
entity Q18164654
relation P50
action find
entity Q7064650
relation P50
type Q502895
{'OR': [['Q18164654', 'P50', {'concept': 'Q502895'}], ['Q7064650', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?s ) { ( resource:Q18164654 ) ( resource:Q7064650 ) } . ?s property:P50 ?d } . ?d rdf:type ontology:Q502895 }
November 1918: A German Revolution Wrath of the Lion
action filter_type
action union
action find
entity Wrath of the Lion
relation author
action find
entity November 1918: A German Revolution
relation author
type common name
{'OR': [['Wrath of the Lion', 'author', {'concept': 'common name'}], ['November 1918: A German Revolution', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?s ) { ( resource:Wrath_of_the_Lion ) ( resource:November_1918:_A_German_Revolution ) } . ?s property:author ?d } . ?d rdf:type ontology:common_name }
[]
common name
Q433708 Q57389
SYSTEM
Jack Higgins, Alfred Döblin
Q433708 Q57389
OR((Q18164654,P50,c(Q502895)), (Q7064650,P50,c(Q502895)))
action filter_type
action union
action find
entity Q18164654
relation P50
action find
entity Q7064650
relation P50
type Q502895
[ANSWERS] wrote Wrath of the Lion or November 1918: A German Revolution
{'OR': [['Q18164654', 'P50', {'concept': 'Q502895'}], ['Q7064650', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?s ) { ( resource:Q18164654 ) ( resource:Q7064650 ) } . ?s property:P50 ?d } . ?d rdf:type ontology:Q502895 }
Jack Higgins Alfred Döblin
Jack Higgins and Alfred Döblin wrote Wrath of the Lion or November 1918: A German Revolution
Jack Higgins Alfred Döblin
action filter_type
action union
action find
entity Wrath of the Lion
relation author
action find
entity November 1918: A German Revolution
relation author
type common name
{'OR': [['Wrath of the Lion', 'author', {'concept': 'common name'}], ['November 1918: A German Revolution', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?s ) { ( resource:Wrath_of_the_Lion ) ( resource:November_1918:_A_German_Revolution ) } . ?s property:author ?d } . ?d rdf:type ontology:common_name }
[]