Simple Question (Direct)
Simple Question
Q1194944
P22
Q502895
USER
Which male person has a child named Tokugawa Mitsukuni ?
(Q1194944,P22,c(Q502895))
action filter_type
action find
entity Q1194944
relation P22
type Q502895
['Q1194944', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q1194944 property:P22 ?b }
Tokugawa Mitsukuni
action filter_type
action find
entity Tokugawa Mitsukuni
relation father
type common name
['Tokugawa Mitsukuni', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Tokugawa_Mitsukuni property:father ?b }
[]
common name
Q1133680
SYSTEM
Tokugawa Yorifusa
Q1133680
(Q1194944,P22,c(Q502895))
action filter_type
action find
entity Q1194944
relation P22
type Q502895
And [ANSWER] has a child named Tokugawa Mitsukuni
['Q1194944', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q1194944 property:P22 ?b }
Tokugawa Yorifusa
And Tokugawa Yorifusa has a child named Tokugawa Mitsukuni
Tokugawa Yorifusa
action filter_type
action find
entity Tokugawa Mitsukuni
relation father
type common name
['Tokugawa Mitsukuni', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Tokugawa_Mitsukuni property:father ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1133680
P7
Q502895
USER
Who are that one a brother of ?
(c(Q502895),P7,Q1133680)
action filter_type
action find_reverse
entity Q1133680
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q1133680']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P7 resource:Q1133680 }
Tokugawa Yorifusa
action filter_type
action find_reverse
entity Tokugawa Yorifusa
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Tokugawa Yorifusa']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:brother resource:Tokugawa_Yorifusa }
[]
common name
Q314464 Q1130929 Q1045763
SYSTEM
Tokugawa Hidetada, Yūki Hideyasu, Tokugawa Yorinobu
Q1133267 Q4489975 Q1136186 Q837867 Q1188704 Q1130929 Q1133215 Q3276029 Q4489936 Q5367216 Q4489959 Q314464 Q1045763 Q4489943
(c(Q502895),P7,Q1133680)
action filter_type
action find_reverse
entity Q1133680
relation P7
type Q502895
That one a brother of are Prince [ANSWERS]
[{'concept': 'Q502895'}, 'P7', 'Q1133680']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P7 resource:Q1133680 }
Takeda Nobuyoshi Furi-hime Tokugawa Yoshinao Matsudaira Tadateru Matsudaira Nobuyasu Yūki Hideyasu Matsudaira Tadayoshi Toku-hime Matsudaira Matsuchiyo Ichi-hime Kame-hime Tokugawa Hidetada Tokugawa Yorinobu Matsudaira Senchiyo
That one a brother of are Prince Tokugawa Hidetada, Yūki Hideyasu and Tokugawa Yorinobu
Tokugawa Hidetada Yūki Hideyasu Tokugawa Yorinobu
action filter_type
action find_reverse
entity Tokugawa Yorifusa
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Tokugawa Yorifusa']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:brother resource:Tokugawa_Yorifusa }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1130929
P9
Q502895
USER
Who are the sisters of that one ?
(Q1130929,P9,c(Q502895))
action filter_type
action find
entity Q1130929
relation P9
type Q502895
['Q1130929', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1130929 property:P9 ?f . ?f rdf:type ontology:Q502895 }
Yūki Hideyasu
action filter_type
action find
entity Yūki Hideyasu
relation sister
type common name
['Yūki Hideyasu', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Yūki_Hideyasu property:sister ?f . ?f rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q314464
SYSTEM
Did you mean Tokugawa Hidetada ?
Q314464 Q1130929 Q1045763
(Q314464,P9,c(Q502895)) (Q1130929,P9,c(Q502895)) (Q1045763,P9,c(Q502895))
[ANSWER]
['Q314464', 'P9', {'concept': 'Q502895'}] ['Q1130929', 'P9', {'concept': 'Q502895'}] ['Q1045763', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1130929 property:P9 ?f . ?f rdf:type ontology:Q502895 }
Tokugawa Hidetada Yūki Hideyasu Tokugawa Yorinobu
Did you mean Tokugawa Hidetada ?
Tokugawa Hidetada
['Tokugawa Hidetada', 'sister', {'concept': 'common name'}] ['Yūki Hideyasu', 'sister', {'concept': 'common name'}] ['Tokugawa Yorinobu', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Yūki_Hideyasu property:sister ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Yūki Hideyasu. Could you tell me the answer for that?
(Q1130929,P9,c(Q502895))
Q1130929
['Q1130929', 'P9', {'concept': 'Q502895'}]
['Yūki Hideyasu', 'sister', {'concept': 'common name'}]
[]
Q5367216 Q4489959 Q3276029
SYSTEM
Ichi-hime, Kame-hime, Toku-hime
Q4489975 Q4489959 Q5367216 Q3276029
(Q1130929,P9,c(Q502895))
action filter_type
action find
entity Q1130929
relation P9
type Q502895
The sisters of that one are the [ANSWERS]
['Q1130929', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1130929 property:P9 ?f . ?f rdf:type ontology:Q502895 }
Furi-hime Kame-hime Ichi-hime Toku-hime
The sisters of that one are the Ichi-hime, Kame-hime and Toku-hime
Ichi-hime Kame-hime Toku-hime
action filter_type
action find
entity Yūki Hideyasu
relation sister
type common name
['Yūki Hideyasu', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Yūki_Hideyasu property:sister ?f . ?f rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4489936
P9
Q502895
USER
Are those ones a sister of Matsudaira Matsuchiyo ?
(Q4489936,P9,Q5367216) (Q4489936,P9,Q4489959) (Q4489936,P9,Q3276029)
action is_in
entity prev_answer
action find
entity Q4489936
relation P9
['Q4489936', 'P9', 'Q5367216'] ['Q4489936', 'P9', 'Q4489959'] ['Q4489936', 'P9', 'Q3276029']
ASK WHERE { resource:Q4489936 property:P9 ?o . VALUES ( ?o ) { ( resource:Q4489975 ) ( resource:Q4489959 ) ( resource:Q5367216 ) } }
Matsudaira Matsuchiyo
action is_in
entity prev_answer
action find
entity Matsudaira Matsuchiyo
relation sister
['Matsudaira Matsuchiyo', 'sister', 'Ichi-hime'] ['Matsudaira Matsuchiyo', 'sister', 'Kame-hime'] ['Matsudaira Matsuchiyo', 'sister', 'Toku-hime']
ASK WHERE { resource:Matsudaira_Matsuchiyo property:sister ?o . VALUES ( ?o ) { ( resource:Furi-hime ) ( resource:Kame-hime ) ( resource:Ichi-hime ) } }
[]
common name
SYSTEM
YES
(Q4489936,P9,Q5367216) (Q4489936,P9,Q4489959) (Q4489936,P9,Q3276029)
action is_in
entity prev_answer
action find
entity Q4489936
relation P9
[ANSWER]
['Q4489936', 'P9', 'Q5367216'] ['Q4489936', 'P9', 'Q4489959'] ['Q4489936', 'P9', 'Q3276029']
ASK WHERE { resource:Q4489936 property:P9 ?o . VALUES ( ?o ) { ( resource:Q4489975 ) ( resource:Q4489959 ) ( resource:Q5367216 ) } }
Yes
action is_in
entity prev_answer
action find
entity Matsudaira Matsuchiyo
relation sister
['Matsudaira Matsuchiyo', 'sister', 'Ichi-hime'] ['Matsudaira Matsuchiyo', 'sister', 'Kame-hime'] ['Matsudaira Matsuchiyo', 'sister', 'Toku-hime']
ASK WHERE { resource:Matsudaira_Matsuchiyo property:sister ?o . VALUES ( ?o ) { ( resource:Furi-hime ) ( resource:Kame-hime ) ( resource:Ichi-hime ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1130929
P27
Q451967 Q15617994
USER
How many human actions and administrative territories are the countries of citizenship of Yūki Hideyasu ?
(Q1130929,P27,c(Q451967)) (Q1130929,P27,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1130929
relation P27
type Q451967
action filter_type
action find
entity Q1130929
relation P27
type Q15617994
['Q1130929', 'P27', {'concept': 'Q451967'}] ['Q1130929', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { resource:Q1130929 property:P27 ?p . ?p rdf:type ontology:Q451967 } UNION { ?p rdf:type ontology:Q15617994 . resource:Q1130929 property:P27 ?p } }
Yūki Hideyasu
action count
action union
action filter_type
action find
entity Yūki Hideyasu
relation country of citizenship
type human action
action filter_type
action find
entity Yūki Hideyasu
relation country of citizenship
type designation for an administrative territorial entity
['Yūki Hideyasu', 'country of citizenship', {'concept': 'human action'}] ['Yūki Hideyasu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { resource:Yūki_Hideyasu property:country_of_citizenship ?p . ?p rdf:type ontology:human_action } UNION { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Yūki_Hideyasu property:country_of_citizenship ?p } }
[]
human action designation for an administrative territorial entity
SYSTEM
1 human actions and 1 administrative territories
Q17 Q205662
(Q1130929,P27,c(Q451967)) (Q1130929,P27,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1130929
relation P27
type Q451967
action filter_type
action find
entity Q1130929
relation P27
type Q15617994
[ANSWER]
['Q1130929', 'P27', {'concept': 'Q451967'}] ['Q1130929', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { resource:Q1130929 property:P27 ?p . ?p rdf:type ontology:Q451967 } UNION { ?p rdf:type ontology:Q15617994 . resource:Q1130929 property:P27 ?p } }
Japan Tokugawa shogunate
1 human actions and 1 administrative territories
action count
action union
action filter_type
action find
entity Yūki Hideyasu
relation country of citizenship
type human action
action filter_type
action find
entity Yūki Hideyasu
relation country of citizenship
type designation for an administrative territorial entity
['Yūki Hideyasu', 'country of citizenship', {'concept': 'human action'}] ['Yūki Hideyasu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { resource:Yūki_Hideyasu property:country_of_citizenship ?p . ?p rdf:type ontology:human_action } UNION { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Yūki_Hideyasu property:country_of_citizenship ?p } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q314464
P21 P7
Q502895
USER
Which people have Tokugawa Hidetada as their sibling and are a male ?
AND((c(Q502895),P7,Q314464), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q314464
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q314464'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P7 resource:Q314464 . ?r property:P21 resource:Q6581097 . ?r rdf:type ontology:Q502895 }
male Tokugawa Hidetada
action filter_type
action intersection
action find_reverse
entity Tokugawa Hidetada
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Tokugawa Hidetada'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:brother resource:Tokugawa_Hidetada . ?r property:gender resource:male . ?r rdf:type ontology:common_name }
[]
common name
Q1133267 Q1136186 Q837867 Q1188704 Q1133215 Q1130929 Q4489936 Q1045763 Q1133680 Q4489943
SYSTEM
Takeda Nobuyoshi, Tokugawa Yoshinao, Matsudaira Tadateru, Matsudaira Nobuyasu, Matsudaira Tadayoshi, Yūki Hideyasu, Matsudaira Matsuchiyo, Tokugawa Yorinobu, Tokugawa Yorifusa, Matsudaira Senchiyo
Q1133267 Q1136186 Q837867 Q1188704 Q1133215 Q1130929 Q4489936 Q1045763 Q1133680 Q4489943
AND((c(Q502895),P7,Q314464), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q314464
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have Tokugawa Hidetada as their sibling and are a male
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q314464'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P7 resource:Q314464 . ?r property:P21 resource:Q6581097 . ?r rdf:type ontology:Q502895 }
Takeda Nobuyoshi Tokugawa Yoshinao Matsudaira Tadateru Matsudaira Nobuyasu Matsudaira Tadayoshi Yūki Hideyasu Matsudaira Matsuchiyo Tokugawa Yorinobu Tokugawa Yorifusa Matsudaira Senchiyo
Takeda Nobuyoshi, Tokugawa Yoshinao, Matsudaira Tadateru, Matsudaira Nobuyasu, Matsudaira Tadayoshi, Yūki Hideyasu, Matsudaira Matsuchiyo, Tokugawa Yorinobu, Tokugawa Yorifusa and Matsudaira Senchiyo have Tokugawa Hidetada as their sibling and are a male
Takeda Nobuyoshi Tokugawa Yoshinao Matsudaira Tadateru Matsudaira Nobuyasu Matsudaira Tadayoshi Yūki Hideyasu Matsudaira Matsuchiyo Tokugawa Yorinobu Tokugawa Yorifusa Matsudaira Senchiyo
action filter_type
action intersection
action find_reverse
entity Tokugawa Hidetada
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Tokugawa Hidetada'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:brother resource:Tokugawa_Hidetada . ?r property:gender resource:male . ?r rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1133215
P27
Q451967
USER
Which human action is the country of citizenship of that person ?
(Q1133215,P27,c(Q451967))
action filter_type
action find
entity Q1133215
relation P27
type Q451967
['Q1133215', 'P27', {'concept': 'Q451967'}]
SELECT DISTINCT ?o WHERE { resource:Q1133215 property:P27 ?o . ?o rdf:type ontology:Q451967 }
Matsudaira Tadayoshi
action filter_type
action find
entity Matsudaira Tadayoshi
relation country of citizenship
type human action
['Matsudaira Tadayoshi', 'country of citizenship', {'concept': 'human action'}]
SELECT DISTINCT ?o WHERE { resource:Matsudaira_Tadayoshi property:country_of_citizenship ?o . ?o rdf:type ontology:human_action }
[]
human action
Clarification for simple ques.
Q1133215
SYSTEM
Did you mean Matsudaira Tadayoshi ?
Q1133267 Q1136186 Q837867 Q1188704 Q1133215 Q1130929 Q4489936 Q1045763 Q1133680 Q4489943
(Q1133267,P27,c(Q451967)) (Q1136186,P27,c(Q451967)) (Q837867,P27,c(Q451967)) (Q1188704,P27,c(Q451967)) (Q1133215,P27,c(Q451967)) (Q1130929,P27,c(Q451967)) (Q4489936,P27,c(Q451967)) (Q1045763,P27,c(Q451967)) (Q1133680,P27,c(Q451967)) (Q4489943,P27,c(Q451967))
[ANSWER]
['Q1133267', 'P27', {'concept': 'Q451967'}] ['Q1136186', 'P27', {'concept': 'Q451967'}] ['Q837867', 'P27', {'concept': 'Q451967'}] ['Q1188704', 'P27', {'concept': 'Q451967'}] ['Q1133215', 'P27', {'concept': 'Q451967'}] ['Q1130929', 'P27', {'concept': 'Q451967'}] ['Q4489936', 'P27', {'concept': 'Q451967'}] ['Q1045763', 'P27', {'concept': 'Q451967'}] ['Q1133680', 'P27', {'concept': 'Q451967'}] ['Q4489943', 'P27', {'concept': 'Q451967'}]
SELECT DISTINCT ?o WHERE { resource:Q1133215 property:P27 ?o . ?o rdf:type ontology:Q451967 }
Takeda Nobuyoshi Tokugawa Yoshinao Matsudaira Tadateru Matsudaira Nobuyasu Matsudaira Tadayoshi Yūki Hideyasu Matsudaira Matsuchiyo Tokugawa Yorinobu Tokugawa Yorifusa Matsudaira Senchiyo
Did you mean Matsudaira Tadayoshi ?
Matsudaira Tadayoshi
['Takeda Nobuyoshi', 'country of citizenship', {'concept': 'human action'}] ['Tokugawa Yoshinao', 'country of citizenship', {'concept': 'human action'}] ['Matsudaira Tadateru', 'country of citizenship', {'concept': 'human action'}] ['Matsudaira Nobuyasu', 'country of citizenship', {'concept': 'human action'}] ['Matsudaira Tadayoshi', 'country of citizenship', {'concept': 'human action'}] ['Yūki Hideyasu', 'country of citizenship', {'concept': 'human action'}] ['Matsudaira Matsuchiyo', 'country of citizenship', {'concept': 'human action'}] ['Tokugawa Yorinobu', 'country of citizenship', {'concept': 'human action'}] ['Tokugawa Yorifusa', 'country of citizenship', {'concept': 'human action'}] ['Matsudaira Senchiyo', 'country of citizenship', {'concept': 'human action'}]
SELECT DISTINCT ?o WHERE { resource:Matsudaira_Tadayoshi property:country_of_citizenship ?o . ?o rdf:type ontology:human_action }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1133215,P27,c(Q451967))
['Q1133215', 'P27', {'concept': 'Q451967'}]
['Matsudaira Tadayoshi', 'country of citizenship', {'concept': 'human action'}]
[]
Q205662
SYSTEM
Tokugawa shogunate
Q205662
(Q1133215,P27,c(Q451967))
action filter_type
action find
entity Q1133215
relation P27
type Q451967
[ANSWER] is the country of citizenship of that person
['Q1133215', 'P27', {'concept': 'Q451967'}]
SELECT DISTINCT ?o WHERE { resource:Q1133215 property:P27 ?o . ?o rdf:type ontology:Q451967 }
Tokugawa shogunate
Tokugawa shogunate is the country of citizenship of that person
Tokugawa shogunate
action filter_type
action find
entity Matsudaira Tadayoshi
relation country of citizenship
type human action
['Matsudaira Tadayoshi', 'country of citizenship', {'concept': 'human action'}]
SELECT DISTINCT ?o WHERE { resource:Matsudaira_Tadayoshi property:country_of_citizenship ?o . ?o rdf:type ontology:human_action }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q205662 Q314464
P35
Q502895
USER
Is Tokugawa Hidetada the chief of state of that human action ?
(Q205662,P35,Q314464)
action is_in
entity Q314464
action find
entity Q205662
relation P35
['Q205662', 'P35', 'Q314464']
ASK WHERE { resource:Q205662 property:P35 resource:Q314464 }
Tokugawa shogunate Tokugawa Hidetada
action is_in
entity Tokugawa Hidetada
action find
entity Tokugawa shogunate
relation head of state
['Tokugawa shogunate', 'head of state', 'Tokugawa Hidetada']
ASK WHERE { resource:Tokugawa_shogunate property:head_of_state resource:Tokugawa_Hidetada }
[]
common name
SYSTEM
YES
(Q205662,P35,Q314464)
action is_in
entity Q314464
action find
entity Q205662
relation P35
[ANSWER]
['Q205662', 'P35', 'Q314464']
ASK WHERE { resource:Q205662 property:P35 resource:Q314464 }
Yes
action is_in
entity Tokugawa Hidetada
action find
entity Tokugawa shogunate
relation head of state
['Tokugawa shogunate', 'head of state', 'Tokugawa Hidetada']
ASK WHERE { resource:Tokugawa_shogunate property:head_of_state resource:Tokugawa_Hidetada }
[]