Simple Question (Direct)
Simple Question
Q1058904
P161
Q502895
USER
Which people starred in Shiawase no Pan ?
(Q1058904,P161,c(Q502895))
action filter_type
action find
entity Q1058904
relation P161
type Q502895
['Q1058904', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q1058904 property:P161 ?h . ?h rdf:type ontology:Q502895 }
Shiawase no Pan
action filter_type
action find
entity Shiawase no Pan
relation cast member
type common name
['Shiawase no Pan', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Shiawase_no_Pan property:cast_member ?h . ?h rdf:type ontology:common_name }
[]
common name
Q1138339 Q513173 Q1041739
SYSTEM
Tomoyo Harada, Nozomi Ōhashi, Yō Ōizumi
Q1059767 Q11366096 Q1154201 Q513173 Q11256933 Q5359623 Q11660867 Q4207975 Q11552263 Q6875103 Q873908 Q1190315 Q1041739 Q1138339
(Q1058904,P161,c(Q502895))
action filter_type
action find
entity Q1058904
relation P161
type Q502895
[ANSWERS] starred in Shiawase no Pan
['Q1058904', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q1058904 property:P161 ?h . ?h rdf:type ontology:Q502895 }
Kimiko Yo Yasuhi Nakamura Kanna Mori Nozomi Ōhashi Morio Agata Yūki Yagi Reika Kirishima Katsuo Nakamura Nobue Iketani Misako Watanabe Ken Mitsuishi Yūta Hiraoka Yō Ōizumi Tomoyo Harada
Tomoyo Harada, Nozomi Ōhashi and Yō Ōizumi starred in Shiawase no Pan
Tomoyo Harada Nozomi Ōhashi Yō Ōizumi
action filter_type
action find
entity Shiawase no Pan
relation cast member
type common name
['Shiawase no Pan', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Shiawase_no_Pan property:cast_member ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1138339 Q513173 Q1041739
P161
Q838948
USER
Which works of art have Tomoyo Harada, Nozomi Ōhashi and Yō Ōizumi as actor ?
(c(Q838948),P161,Q1138339) (c(Q838948),P161,Q513173) (c(Q838948),P161,Q1041739)
action union
action filter_type
action find_reverse
entity Q1138339
relation P161
type Q838948
action filter_type
action find_reverse
entity Q513173
relation P161
type Q838948
action filter_type
action find_reverse
entity Q1041739
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q1138339'] [{'concept': 'Q838948'}, 'P161', 'Q513173'] [{'concept': 'Q838948'}, 'P161', 'Q1041739']
SELECT DISTINCT ?f WHERE { { ?f property:P161 resource:Q1138339 . ?f rdf:type ontology:Q838948 } UNION { ?f property:P161 resource:Q513173 . ?f rdf:type ontology:Q838948 } }
Tomoyo Harada Nozomi Ōhashi Yō Ōizumi
action union
action filter_type
action find_reverse
entity Tomoyo Harada
relation cast member
type work of art
action filter_type
action find_reverse
entity Nozomi Ōhashi
relation cast member
type work of art
action filter_type
action find_reverse
entity Yō Ōizumi
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Tomoyo Harada'] [{'concept': 'work of art'}, 'cast member', 'Nozomi Ōhashi'] [{'concept': 'work of art'}, 'cast member', 'Yō Ōizumi']
SELECT DISTINCT ?f WHERE { { ?f property:cast_member resource:Tomoyo_Harada . ?f rdf:type ontology:work_of_art } UNION { ?f property:cast_member resource:Nozomi_Ōhashi . ?f rdf:type ontology:work_of_art } }
[]
work of art
Q15303700 Q155653 Q29011
SYSTEM
When Marnie Was There, Spirited Away, Howl's Moving Castle
Q1058904 Q16164968 Q5326749 Q4981366 Q7718705 Q1058904 Q624578 Q17221018 Q15303700 Q7634930 Q4184114 Q2395290 Q1058904 Q155653 Q11561457 Q2096026 Q29011 Q1091012 Q11232734
(c(Q838948),P161,Q1138339) (c(Q838948),P161,Q513173) (c(Q838948),P161,Q1041739)
action union
action filter_type
action find_reverse
entity Q1138339
relation P161
type Q838948
action filter_type
action find_reverse
entity Q513173
relation P161
type Q838948
action filter_type
action find_reverse
entity Q1041739
relation P161
type Q838948
When Marnie was There, spirited Away and Howl's Moving Castle have Tomoyo Harada, Nozomi Ōhashi and Yō Ōizumi as actor
[{'concept': 'Q838948'}, 'P161', 'Q1138339'] [{'concept': 'Q838948'}, 'P161', 'Q513173'] [{'concept': 'Q838948'}, 'P161', 'Q1041739']
SELECT DISTINCT ?f WHERE { { ?f property:P161 resource:Q1138339 . ?f rdf:type ontology:Q838948 } UNION { ?f property:P161 resource:Q513173 . ?f rdf:type ontology:Q838948 } }
Shiawase no Pan Pecoross' Mother and Her Days Early Spring Story Toki o Kakeru Shōjo The Blossoming of Kamiya Etsuko Shiawase no Pan All About My Dog A Bolt from the Blue When Marnie Was There Sugar and Spice The Detective Is in the Bar Nasu: Summer in Andalusia Shiawase no Pan Spirited Away The Kiyosu Conference Professor Layton and the Eternal Diva Howl's Moving Castle Moshidora Man-hole
When Marnie was There, spirited Away and Howl's Moving Castle have Tomoyo Harada, Nozomi Ōhashi and Yō Ōizumi as actor
When Marnie Was There Spirited Away Howl's Moving Castle
action union
action filter_type
action find_reverse
entity Tomoyo Harada
relation cast member
type work of art
action filter_type
action find_reverse
entity Nozomi Ōhashi
relation cast member
type work of art
action filter_type
action find_reverse
entity Yō Ōizumi
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Tomoyo Harada'] [{'concept': 'work of art'}, 'cast member', 'Nozomi Ōhashi'] [{'concept': 'work of art'}, 'cast member', 'Yō Ōizumi']
SELECT DISTINCT ?f WHERE { { ?f property:cast_member resource:Tomoyo_Harada . ?f rdf:type ontology:work_of_art } UNION { ?f property:cast_member resource:Nozomi_Ōhashi . ?f rdf:type ontology:work_of_art } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1138339
P21
Q290
USER
What is the sex of that person ?
(Q1138339,P21,c(Q290))
action filter_type
action find
entity Q1138339
relation P21
type Q290
['Q1138339', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q1138339 property:P21 ?n . ?n rdf:type ontology:Q290 }
Tomoyo Harada
action filter_type
action find
entity Tomoyo Harada
relation gender
type sex
['Tomoyo Harada', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Tomoyo_Harada property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q1138339
SYSTEM
Did you mean Tomoyo Harada ?
Q15303700 Q155653 Q29011
(Q15303700,P21,c(Q290)) (Q155653,P21,c(Q290)) (Q29011,P21,c(Q290))
[ANSWER]
['Q15303700', 'P21', {'concept': 'Q290'}] ['Q155653', 'P21', {'concept': 'Q290'}] ['Q29011', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q1138339 property:P21 ?n . ?n rdf:type ontology:Q290 }
When Marnie Was There Spirited Away Howl's Moving Castle
Did you mean Tomoyo Harada ?
Tomoyo Harada
['When Marnie Was There', 'gender', {'concept': 'sex'}] ['Spirited Away', 'gender', {'concept': 'sex'}] ["Howl's Moving Castle", 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Tomoyo_Harada property:gender ?n . ?n rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1138339,P21,c(Q290))
['Q1138339', 'P21', {'concept': 'Q290'}]
['Tomoyo Harada', 'gender', {'concept': 'sex'}]
[]
Q6581072
SYSTEM
female
Q6581072
(Q1138339,P21,c(Q290))
action filter_type
action find
entity Q1138339
relation P21
type Q290
The sex of that person is the [ANSWER]
['Q1138339', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q1138339 property:P21 ?n . ?n rdf:type ontology:Q290 }
female
The sex of that person is the female
female
action filter_type
action find
entity Tomoyo Harada
relation gender
type sex
['Tomoyo Harada', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Tomoyo_Harada property:gender ?n . ?n rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15303700
P57
Q502895
USER
Who was the director of When Marnie Was There ?
(Q15303700,P57,c(Q502895))
action filter_type
action find
entity Q15303700
relation P57
type Q502895
['Q15303700', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q15303700 property:P57 ?p . ?p rdf:type ontology:Q502895 }
When Marnie Was There
action filter_type
action find
entity When Marnie Was There
relation director
type common name
['When Marnie Was There', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:When_Marnie_Was_There property:director ?p . ?p rdf:type ontology:common_name }
[]
common name
Q2630715
SYSTEM
Hiromasa Yonebayashi
Q2630715
(Q15303700,P57,c(Q502895))
action filter_type
action find
entity Q15303700
relation P57
type Q502895
The director of Marnie Was was of [ANSWER]
['Q15303700', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q15303700 property:P57 ?p . ?p rdf:type ontology:Q502895 }
Hiromasa Yonebayashi
The director of Marnie Was was of Hiromasa Yonebayashi
Hiromasa Yonebayashi
action filter_type
action find
entity When Marnie Was There
relation director
type common name
['When Marnie Was There', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:When_Marnie_Was_There property:director ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q18390891
Q502895
USER
And also tell me about Mohiniyaattam?
(Q18390891,P57,c(Q502895))
action filter_type
action find
entity Q18390891
relation P57
type Q502895
['Q18390891', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q18390891 property:P57 ?g . ?g rdf:type ontology:Q502895 }
Mohiniyaattam
action filter_type
action find
entity Mohiniyaattam
relation director
type common name
['Mohiniyaattam', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Mohiniyaattam property:director ?g . ?g rdf:type ontology:common_name }
[]
common name
Q7585712
SYSTEM
Sreekumaran Thampi
Q7585712
(Q18390891,P57,c(Q502895))
action filter_type
action find
entity Q18390891
relation P57
type Q502895
[ANSWER]
['Q18390891', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q18390891 property:P57 ?g . ?g rdf:type ontology:Q502895 }
Sreekumaran Thampi
Sreekumaran Thampi
action filter_type
action find
entity Mohiniyaattam
relation director
type common name
['Mohiniyaattam', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Mohiniyaattam property:director ?g . ?g rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q7585712 Q668
P27
Q15617994
USER
Is India the country of citizenship of that person ?
(Q7585712,P27,Q668)
action is_in
entity Q668
action find
entity Q7585712
relation P27
['Q7585712', 'P27', 'Q668']
ASK WHERE { resource:Q7585712 property:P27 resource:Q668 }
Sreekumaran Thampi India
action is_in
entity India
action find
entity Sreekumaran Thampi
relation country of citizenship
['Sreekumaran Thampi', 'country of citizenship', 'India']
ASK WHERE { resource:Sreekumaran_Thampi property:country_of_citizenship resource:India }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q7585712,P27,Q668)
action is_in
entity Q668
action find
entity Q7585712
relation P27
[ANSWER]
['Q7585712', 'P27', 'Q668']
ASK WHERE { resource:Q7585712 property:P27 resource:Q668 }
Yes
action is_in
entity India
action find
entity Sreekumaran Thampi
relation country of citizenship
['Sreekumaran Thampi', 'country of citizenship', 'India']
ASK WHERE { resource:Sreekumaran_Thampi property:country_of_citizenship resource:India }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q772419 Q668
P530 P495
Q15617994
USER
Which administrative territories have a diplomatic relationship with India and are not the countries of origin of Dead Men Ride ?
AND((Q668,P530,c(Q15617994)), NOT((Q772419,P495,c(Q15617994))))
action filter_type
action difference
action find
entity Q668
relation P530
action find
entity Q772419
relation P495
type Q15617994
{'AND': [['Q668', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q772419', 'P495', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?x WHERE { resource:Q668 property:P530 ?x . FILTER NOT EXISTS { resource:Q772419 property:P495 ?x } . ?x rdf:type ontology:Q15617994 }
Dead Men Ride India
action filter_type
action difference
action find
entity India
relation diplomatic relation
action find
entity Dead Men Ride
relation country of origin
type designation for an administrative territorial entity
{'AND': [['India', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Dead Men Ride', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?x WHERE { resource:India property:diplomatic_relation ?x . FILTER NOT EXISTS { resource:Dead_Men_Ride property:country_of_origin ?x } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q30 Q159 Q801
SYSTEM
Brazil, United States of America, Russia, Israel
Q155 Q30 Q159 Q801
AND((Q668,P530,c(Q15617994)), NOT((Q772419,P495,c(Q15617994))))
action filter_type
action difference
action find
entity Q668
relation P530
action find
entity Q772419
relation P495
type Q15617994
[ANSWERS] have a diplomatic relationship with India and are not the countries of origin of Dead Men Ride
{'AND': [['Q668', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q772419', 'P495', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?x WHERE { resource:Q668 property:P530 ?x . FILTER NOT EXISTS { resource:Q772419 property:P495 ?x } . ?x rdf:type ontology:Q15617994 }
Brazil United States of America Russia Israel
Brazil, United States of America, Russia and Israel have a diplomatic relationship with India and are not the countries of origin of Dead Men Ride
Brazil United States of America Russia Israel
action filter_type
action difference
action find
entity India
relation diplomatic relation
action find
entity Dead Men Ride
relation country of origin
type designation for an administrative territorial entity
{'AND': [['India', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Dead Men Ride', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?x WHERE { resource:India property:diplomatic_relation ?x . FILTER NOT EXISTS { resource:Dead_Men_Ride property:country_of_origin ?x } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q155 Q30 Q159 Q801
P17
Q15617994
USER
Which administrative territories do those ones belong to ?
(Q155,P17,c(Q15617994)) (Q30,P17,c(Q15617994)) (Q159,P17,c(Q15617994)) (Q801,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q155', 'P17', {'concept': 'Q15617994'}] ['Q30', 'P17', {'concept': 'Q15617994'}] ['Q159', 'P17', {'concept': 'Q15617994'}] ['Q801', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . ?u property:P17 ?i . VALUES ( ?u ) { ( resource:Q155 ) ( resource:Q30 ) ( resource:Q159 ) } }
Brazil United States of America Russia Israel
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Brazil', 'country', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Russia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Israel', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u property:country ?i . VALUES ( ?u ) { ( resource:Brazil ) ( resource:United_States_of_America ) ( resource:Russia ) } }
[]
designation for an administrative territorial entity
Q155 Q30 Q159
SYSTEM
Brazil, United States of America, Russia
Q155 Q30 Q159 Q801
(Q155,P17,c(Q15617994)) (Q30,P17,c(Q15617994)) (Q159,P17,c(Q15617994)) (Q801,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those ones belong to [ANSWERS]
['Q155', 'P17', {'concept': 'Q15617994'}] ['Q30', 'P17', {'concept': 'Q15617994'}] ['Q159', 'P17', {'concept': 'Q15617994'}] ['Q801', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . ?u property:P17 ?i . VALUES ( ?u ) { ( resource:Q155 ) ( resource:Q30 ) ( resource:Q159 ) } }
Brazil United States of America Russia Israel
Those ones belong to Brazil, United States of America and Russia
Brazil United States of America Russia
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Brazil', 'country', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Russia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Israel', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u property:country ?i . VALUES ( ?u ) { ( resource:Brazil ) ( resource:United_States_of_America ) ( resource:Russia ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q155 Q30 Q159
P30
Q2221906
USER
Which geographic locations are those administrative territories situated in ?
(Q155,P30,c(Q2221906)) (Q30,P30,c(Q2221906)) (Q159,P30,c(Q2221906))
action filter_type
action find
entity prev_answer
relation P30
type Q2221906
['Q155', 'P30', {'concept': 'Q2221906'}] ['Q30', 'P30', {'concept': 'Q2221906'}] ['Q159', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?f WHERE { VALUES ( ?g ) { ( resource:Q155 ) ( resource:Q30 ) ( resource:Q159 ) } . ?f rdf:type ontology:Q2221906 . ?g property:P30 ?f }
Brazil United States of America Russia
action filter_type
action find
entity prev_answer
relation continent
type geographic location
['Brazil', 'continent', {'concept': 'geographic location'}] ['United States of America', 'continent', {'concept': 'geographic location'}] ['Russia', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?f WHERE { VALUES ( ?g ) { ( resource:Brazil ) ( resource:United_States_of_America ) ( resource:Russia ) } . ?f rdf:type ontology:geographic_location . ?g property:continent ?f }
[]
geographic location
Q48 Q46 Q18
SYSTEM
Asia, Europe, South America
Q18 Q538 Q49 Q46 Q5401 Q48
(Q155,P30,c(Q2221906)) (Q30,P30,c(Q2221906)) (Q159,P30,c(Q2221906))
action filter_type
action find
entity prev_answer
relation P30
type Q2221906
Those administrative territories are situated in [ANSWERS]
['Q155', 'P30', {'concept': 'Q2221906'}] ['Q30', 'P30', {'concept': 'Q2221906'}] ['Q159', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?f WHERE { VALUES ( ?g ) { ( resource:Q155 ) ( resource:Q30 ) ( resource:Q159 ) } . ?f rdf:type ontology:Q2221906 . ?g property:P30 ?f }
South America Oceania North America Europe Eurasia Asia
Those administrative territories are situated in Asia, Europe and South America
Asia Europe South America
action filter_type
action find
entity prev_answer
relation continent
type geographic location
['Brazil', 'continent', {'concept': 'geographic location'}] ['United States of America', 'continent', {'concept': 'geographic location'}] ['Russia', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?f WHERE { VALUES ( ?g ) { ( resource:Brazil ) ( resource:United_States_of_America ) ( resource:Russia ) } . ?f rdf:type ontology:geographic_location . ?g property:continent ?f }
[]