Simple Question (Direct)
Simple Question
Q5216003
P161
Q502895
USER
Which people are in Danger Has Two Faces ?
(Q5216003,P161,c(Q502895))
action filter_type
action find
entity Q5216003
relation P161
type Q502895
['Q5216003', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q5216003 property:P161 ?z }
Danger Has Two Faces
action filter_type
action find
entity Danger Has Two Faces
relation cast member
type common name
['Danger Has Two Faces', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:Danger_Has_Two_Faces property:cast_member ?z }
[]
common name
Q5441522 Q860948
SYSTEM
Fei Xiang, Bryan Leung
Q5441522 Q860948
(Q5216003,P161,c(Q502895))
action filter_type
action find
entity Q5216003
relation P161
type Q502895
[ANSWERS] are in Danger Has Two Faces
['Q5216003', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q5216003 property:P161 ?z }
Fei Xiang Bryan Leung
Fei Xiang and Bryan Leung are in Danger Has Two Faces
Fei Xiang Bryan Leung
action filter_type
action find
entity Danger Has Two Faces
relation cast member
type common name
['Danger Has Two Faces', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:Danger_Has_Two_Faces property:cast_member ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5216003
P136
Q483394
USER
What can be considered as category for Danger Has Two Faces ?
(Q5216003,P136,c(Q483394))
action filter_type
action find
entity Q5216003
relation P136
type Q483394
['Q5216003', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?h WHERE { resource:Q5216003 property:P136 ?h . ?h rdf:type ontology:Q483394 }
Danger Has Two Faces
action filter_type
action find
entity Danger Has Two Faces
relation genre
type genre
['Danger Has Two Faces', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?h WHERE { resource:Danger_Has_Two_Faces property:genre ?h . ?h rdf:type ontology:genre }
[]
genre
Q182015
SYSTEM
thriller
Q182015
(Q5216003,P136,c(Q483394))
action filter_type
action find
entity Q5216003
relation P136
type Q483394
[ANSWER] can be considered as category for Danger Has Two Faces
['Q5216003', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?h WHERE { resource:Q5216003 property:P136 ?h . ?h rdf:type ontology:Q483394 }
thriller
Thriller can be considered as category for Danger Has Two Faces
thriller
action filter_type
action find
entity Danger Has Two Faces
relation genre
type genre
['Danger Has Two Faces', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?h WHERE { resource:Danger_Has_Two_Faces property:genre ?h . ?h rdf:type ontology:genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q860948
P734
Q101352
USER
Which family name is associated with Bryan Leung ?
(Q860948,P734,c(Q101352))
action filter_type
action find
entity Q860948
relation P734
type Q101352
['Q860948', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?k WHERE { resource:Q860948 property:P734 ?k . ?k rdf:type ontology:Q101352 }
Bryan Leung
action filter_type
action find
entity Bryan Leung
relation family name
type family name
['Bryan Leung', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?k WHERE { resource:Bryan_Leung property:family_name ?k . ?k rdf:type ontology:family_name }
[]
family name
Q13391233
SYSTEM
Liang
Q13391233
(Q860948,P734,c(Q101352))
action filter_type
action find
entity Q860948
relation P734
type Q101352
[ANSWER] is associated with Bryan Leung
['Q860948', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?k WHERE { resource:Q860948 property:P734 ?k . ?k rdf:type ontology:Q101352 }
Liang
Liang is associated with Bryan Leung
Liang
action filter_type
action find
entity Bryan Leung
relation family name
type family name
['Bryan Leung', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?k WHERE { resource:Bryan_Leung property:family_name ?k . ?k rdf:type ontology:family_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q860948
P57
Q838948
USER
Which works of art are Bryan Leung a director of ?
(c(Q838948),P57,Q860948)
action filter_type
action find_reverse
entity Q860948
relation P57
type Q838948
[{'concept': 'Q838948'}, 'P57', 'Q860948']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q838948 . ?a property:P57 resource:Q860948 }
Bryan Leung
action filter_type
action find_reverse
entity Bryan Leung
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Bryan Leung']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:work_of_art . ?a property:director resource:Bryan_Leung }
[]
work of art
Q10863962 Q14948521
SYSTEM
My Hero, Profile in Anger
Q10863962 Q14948521
(c(Q838948),P57,Q860948)
action filter_type
action find_reverse
entity Q860948
relation P57
type Q838948
[ANSWERS] are Bryan Leung a director of
[{'concept': 'Q838948'}, 'P57', 'Q860948']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q838948 . ?a property:P57 resource:Q860948 }
My Hero Profile in Anger
My Hero and Profile in Anger are Bryan Leung a director of
My Hero Profile in Anger
action filter_type
action find_reverse
entity Bryan Leung
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Bryan Leung']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:work_of_art . ?a property:director resource:Bryan_Leung }
[]
Clarification
Simple Question|Single Entity|Indirect
Q10863962
P86
Q502895
USER
Who did the compostion for that work of art ?
(Q10863962,P86,c(Q502895))
action filter_type
action find
entity Q10863962
relation P86
type Q502895
['Q10863962', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q10863962 property:P86 ?q . ?q rdf:type ontology:Q502895 }
My Hero
action filter_type
action find
entity My Hero
relation composer
type common name
['My Hero', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:My_Hero property:composer ?q . ?q rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q14948521
SYSTEM
Did you mean Profile in Anger ?
Q10863962 Q14948521
(Q10863962,P86,c(Q502895)) (Q14948521,P86,c(Q502895))
[ANSWER]
['Q10863962', 'P86', {'concept': 'Q502895'}] ['Q14948521', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q10863962 property:P86 ?q . ?q rdf:type ontology:Q502895 }
My Hero Profile in Anger
Did you mean Profile in Anger ?
Profile in Anger
['My Hero', 'composer', {'concept': 'common name'}] ['Profile in Anger', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:My_Hero property:composer ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant My Hero. Could you tell me the answer for that?
(Q10863962,P86,c(Q502895))
Q10863962
['Q10863962', 'P86', {'concept': 'Q502895'}]
['My Hero', 'composer', {'concept': 'common name'}]
[]
Q696711
SYSTEM
Chyi Chin
Q696711
(Q10863962,P86,c(Q502895))
action filter_type
action find
entity Q10863962
relation P86
type Q502895
[ANSWER] did the compostion for that work of art
['Q10863962', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q10863962 property:P86 ?q . ?q rdf:type ontology:Q502895 }
Chyi Chin
Chyi Chin did the compostion for that work of art
Chyi Chin
action filter_type
action find
entity My Hero
relation composer
type common name
['My Hero', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:My_Hero property:composer ?q . ?q rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q696711 Q10863962
P86
Q838948
USER
Is that person a composer of My Hero ?
(Q10863962,P86,Q696711)
action is_in
entity Q696711
action find
entity Q10863962
relation P86
['Q10863962', 'P86', 'Q696711']
ASK WHERE { resource:Q10863962 property:P86 resource:Q696711 }
Chyi Chin My Hero
action is_in
entity Chyi Chin
action find
entity My Hero
relation composer
['My Hero', 'composer', 'Chyi Chin']
ASK WHERE { resource:My_Hero property:composer resource:Chyi_Chin }
[]
work of art
SYSTEM
YES
(Q10863962,P86,Q696711)
action is_in
entity Q696711
action find
entity Q10863962
relation P86
[ANSWER]
['Q10863962', 'P86', 'Q696711']
ASK WHERE { resource:Q10863962 property:P86 resource:Q696711 }
Yes
action is_in
entity Chyi Chin
action find
entity My Hero
relation composer
['My Hero', 'composer', 'Chyi Chin']
ASK WHERE { resource:My_Hero property:composer resource:Chyi_Chin }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q10863962 Q311179 Q11753243
P161
Q502895
USER
Does My Hero have Stephen Chow and Laura Greenhalgh in its star cast ?
(Q10863962,P161,Q311179) (Q10863962,P161,Q11753243)
action is_in
entity Q10863962
action intersection
action find_reverse
entity Q311179
relation P161
action find_reverse
entity Q11753243
relation P161
['Q10863962', 'P161', 'Q311179'] ['Q10863962', 'P161', 'Q11753243']
ASK WHERE { resource:Q10863962 property:P161 resource:Q311179 . resource:Q10863962 property:P161 resource:Q11753243 }
My Hero Stephen Chow Laura Greenhalgh
action is_in
entity My Hero
action intersection
action find_reverse
entity Stephen Chow
relation cast member
action find_reverse
entity Laura Greenhalgh
relation cast member
['My Hero', 'cast member', 'Stephen Chow'] ['My Hero', 'cast member', 'Laura Greenhalgh']
ASK WHERE { resource:My_Hero property:cast_member resource:Stephen_Chow . resource:My_Hero property:cast_member resource:Laura_Greenhalgh }
[]
common name
SYSTEM
YES and NO respectively
(Q10863962,P161,Q311179) (Q10863962,P161,Q11753243)
action is_in
entity Q10863962
action intersection
action find_reverse
entity Q311179
relation P161
action find_reverse
entity Q11753243
relation P161
[ANSWER]
['Q10863962', 'P161', 'Q311179'] ['Q10863962', 'P161', 'Q11753243']
ASK WHERE { resource:Q10863962 property:P161 resource:Q311179 . resource:Q10863962 property:P161 resource:Q11753243 }
YES and NO respectively
action is_in
entity My Hero
action intersection
action find_reverse
entity Stephen Chow
relation cast member
action find_reverse
entity Laura Greenhalgh
relation cast member
['My Hero', 'cast member', 'Stephen Chow'] ['My Hero', 'cast member', 'Laura Greenhalgh']
ASK WHERE { resource:My_Hero property:cast_member resource:Stephen_Chow . resource:My_Hero property:cast_member resource:Laura_Greenhalgh }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2536187 Q311179
P161
Q838948
USER
Which works of art do Stephen Chow or James Arnold Taylor star in ?
OR((c(Q838948),P161,Q311179), (c(Q838948),P161,Q2536187))
action filter_type
action union
action find_reverse
entity Q311179
relation P161
action find_reverse
entity Q2536187
relation P161
type Q838948
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q311179'], [{'concept': 'Q838948'}, 'P161', 'Q2536187']]}
SELECT DISTINCT ?o WHERE { { { ?o property:P161 resource:Q2536187 } UNION { ?o property:P161 resource:Q311179 } } . ?o rdf:type ontology:Q838948 }
James Arnold Taylor Stephen Chow
action filter_type
action union
action find_reverse
entity Stephen Chow
relation cast member
action find_reverse
entity James Arnold Taylor
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Stephen Chow'], [{'concept': 'work of art'}, 'cast member', 'James Arnold Taylor']]}
SELECT DISTINCT ?o WHERE { { { ?o property:cast_member resource:James_Arnold_Taylor } UNION { ?o property:cast_member resource:Stephen_Chow } } . ?o rdf:type ontology:work_of_art }
[]
work of art
Q840589 Q11091702 Q3485767 Q470759 Q6675037 Q13634557 Q382289 Q7749583 Q629833 Q16923851
SYSTEM
Some of them are Curry and Pepper, Faithfully Yours, Sixty, Kung Fu Hustle, Look Out, Officer!, Fight Back to School II, Star Wars: The Clone Wars, The Magnificent Scoundrels, Atlantis: Milo's Return, Love Is Love
Q1015816 Q846563 Q11091702 Q7749153 Q60794 Q838900 Q3109670 Q4088982 Q10863962 Q6517798 Q3272505 Q6675037 Q2554607 Q753159 Q868483 Q7913393 Q1051702 Q840589 Q2706517 Q775390 Q3087314 Q3275152 Q470759 Q335340 Q7749583 Q609170 Q13634557 Q5455334 Q3446056 Q1028631 Q6505082 Q4727754 Q382289 Q3272536 Q4727752 Q21780577 Q536299 Q988368 Q16923851 Q996825 Q1376388 Q2837581 Q3190284 Q2233858 Q6412210 Q7254100 Q5574357 Q3278995 Q3071625 Q12127045 Q3485767 Q629833 Q18703064 Q692863
OR((c(Q838948),P161,Q311179), (c(Q838948),P161,Q2536187))
action filter_type
action union
action find_reverse
entity Q311179
relation P161
action find_reverse
entity Q2536187
relation P161
type Q838948
Stephen Chow or James Arnold Taylor star in [ANSWERS]
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q311179'], [{'concept': 'Q838948'}, 'P161', 'Q2536187']]}
SELECT DISTINCT ?o WHERE { { { ?o property:P161 resource:Q2536187 } UNION { ?o property:P161 resource:Q311179 } } . ?o rdf:type ontology:Q838948 }
Fight Back to School III Forbidden City Cop Faithfully Yours The Lucky Guy Gorgeous Flirting Scholar God of Gamblers II God of Gamblers III: Back to Shanghai My Hero Legend of the Dragon Hail the Judge Look Out, Officer! The God of Cookery Dragon Fight A Chinese Odyssey Van Helsing: The London Assignment Ultimate Avengers Curry and Pepper King of Comedy Tricky Brains Royal Tramp The Mad Monk Kung Fu Hustle The Animatrix The Magnificent Scoundrels CJ7 Fight Back to School II Fist of Fury 1991 Royal Tramp II Justice, My Foot! Lawyer Lawyer All's Well, Ends Well Star Wars: The Clone Wars Lung Fung Restaurant All's Well, Ends Well 1997 Lego DC Comics Super Heroes: Justice League: Cosmic Clash Shaolin Soccer Love on Delivery Love Is Love Out of the Dark The Drawn Together Movie: The Movie! All for the Winner Just Heroes Bionicle: The Legend Reborn King of Beggars The Tricky Master Gnomes and Trolls: The Secret Chamber A Chinese Odyssey Part Two: Cinderella Fight Back to School Ratchet & Clank Sixty Atlantis: Milo's Return Animal Crackers From Beijing with Love
Stephen Chow or James Arnold Taylor star in Curry and Pepper, Faithfully Yours, Sixty, Kung Fu Hustle, Look Out, Officer!, Fight Back to School II, Star Wars: The Clone Wars, The Magnificent Scoundrels, Atlantis: Milo's Return and Love Is Love
Curry and Pepper Faithfully Yours Sixty Kung Fu Hustle Look Out, Officer! Fight Back to School II Star Wars: The Clone Wars The Magnificent Scoundrels Atlantis: Milo's Return Love Is Love
action filter_type
action union
action find_reverse
entity Stephen Chow
relation cast member
action find_reverse
entity James Arnold Taylor
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Stephen Chow'], [{'concept': 'work of art'}, 'cast member', 'James Arnold Taylor']]}
SELECT DISTINCT ?o WHERE { { { ?o property:cast_member resource:James_Arnold_Taylor } UNION { ?o property:cast_member resource:Stephen_Chow } } . ?o rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P2079
Q2695280 Q838948
USER
Which technicss are used to assemble min number of works of art ?
(c(Q838948),P2079,Q170593)
action argmin
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
[{'concept': 'Q838948'}, 'P2079', 'Q170593']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?m ) { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?h ) WHERE { ?t rdf:type ontology:Q838948 . ?w rdf:type ontology:Q2695280 . ?t property:P2079 ?w } GROUP BY ?w } } . { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:P2079 ?l . ?f rdf:type ontology:Q838948 . ?l rdf:type ontology:Q2695280 } GROUP BY ?l } . FILTER ( ?o = ?m ) }
action argmin
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
[{'concept': 'work of art'}, 'fabrication method', 'collage']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?m ) { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?h ) WHERE { ?t rdf:type ontology:work_of_art . ?w rdf:type ontology:technics . ?t property:fabrication_method ?w } GROUP BY ?w } } . { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:fabrication_method ?l . ?f rdf:type ontology:work_of_art . ?l rdf:type ontology:technics } GROUP BY ?l } . FILTER ( ?o = ?m ) }
[]
technics work of art
Q173242 Q26265824 Q139106
SYSTEM
woodcut technique, chasing, engraving
Q11750728 Q9363879 Q173242 Q204867 Q192047 Q752633 Q26265824 Q139106 Q133036 Q2657271
(c(Q838948),P2079,Q170593)
action argmin
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
[ANSWERS] are used to assemble min number of works of art
[{'concept': 'Q838948'}, 'P2079', 'Q170593']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?m ) { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?h ) WHERE { ?t rdf:type ontology:Q838948 . ?w rdf:type ontology:Q2695280 . ?t property:P2079 ?w } GROUP BY ?w } } . { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:P2079 ?l . ?f rdf:type ontology:Q838948 . ?l rdf:type ontology:Q2695280 } GROUP BY ?l } . FILTER ( ?o = ?m ) }
Punching stamping woodcut technique zincography machining linocut technique chasing engraving lithography silvering
Woodcut technique, chasing and engraving are used to assemble min number of works of art
woodcut technique chasing engraving
action argmin
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
[{'concept': 'work of art'}, 'fabrication method', 'collage']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?m ) { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?h ) WHERE { ?t rdf:type ontology:work_of_art . ?w rdf:type ontology:technics . ?t property:fabrication_method ?w } GROUP BY ?w } } . { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:fabrication_method ?l . ?f rdf:type ontology:work_of_art . ?l rdf:type ontology:technics } GROUP BY ?l } . FILTER ( ?o = ?m ) }
[]