Simple Question (Direct)
Simple Question
Q1679759
P22
Q502895
USER
Which person was the father of Jalisco B ?
(Q1679759,P22,c(Q502895))
action filter_type
action find
entity Q1679759
relation P22
type Q502895
['Q1679759', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q1679759 property:P22 ?w . ?w rdf:type ontology:Q502895 }
Jalisco B
action filter_type
action find
entity Jalisco B
relation father
type common name
['Jalisco B', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Jalisco_B property:father ?w . ?w rdf:type ontology:common_name }
[]
common name
Q2649831
SYSTEM
Almé Z
Q2649831
(Q1679759,P22,c(Q502895))
action filter_type
action find
entity Q1679759
relation P22
type Q502895
[ANSWER] was the father of Jalisco B
['Q1679759', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q1679759 property:P22 ?w . ?w rdf:type ontology:Q502895 }
Almé Z
Almé Z was the father of Jalisco B
Almé Z
action filter_type
action find
entity Jalisco B
relation father
type common name
['Jalisco B', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Jalisco_B property:father ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2649831
P40
Q3745054
USER
Who has that person as an offspring ?
(c(Q3745054),P40,Q2649831)
action filter_type
action find_reverse
entity Q2649831
relation P40
type Q3745054
[{'concept': 'Q3745054'}, 'P40', 'Q2649831']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q3745054 . ?t property:P40 resource:Q2649831 }
Almé Z
action filter_type
action find_reverse
entity Almé Z
relation child
type horse breed
[{'concept': 'horse breed'}, 'child', 'Almé Z']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:horse_breed . ?t property:child resource:Almé_Z }
[]
horse breed
Q3147477
SYSTEM
Ibrahim
Q3147477
(c(Q3745054),P40,Q2649831)
action filter_type
action find_reverse
entity Q2649831
relation P40
type Q3745054
[ANSWER] has that person as an offspring
[{'concept': 'Q3745054'}, 'P40', 'Q2649831']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q3745054 . ?t property:P40 resource:Q2649831 }
Ibrahim
Ibrahim has that person as an offspring
Ibrahim
action filter_type
action find_reverse
entity Almé Z
relation child
type horse breed
[{'concept': 'horse breed'}, 'child', 'Almé Z']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:horse_breed . ?t property:child resource:Almé_Z }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P40
Q502895
USER
How many people are a successors of that horse breed ?
(Q3147477,P40,c(Q502895))
action count
action filter_type
action find
entity Q3147477
relation P40
type Q502895
['Q3147477', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { resource:Q3147477 property:P40 ?y . ?y rdf:type ontology:Q502895 }
action count
action filter_type
action find
entity Ibrahim
relation child
type common name
['Ibrahim', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { resource:Ibrahim property:child ?y . ?y rdf:type ontology:common_name }
[]
common name
SYSTEM
4
Q22319883 Q22321017 Q22323928 Q2649831
(Q3147477,P40,c(Q502895))
action count
action filter_type
action find
entity Q3147477
relation P40
type Q502895
[ANSWER]
['Q3147477', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { resource:Q3147477 property:P40 ?y . ?y rdf:type ontology:Q502895 }
Double Espoir Orientale Tanael Almé Z
4
action count
action filter_type
action find
entity Ibrahim
relation child
type common name
['Ibrahim', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { resource:Ibrahim property:child ?y . ?y rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1679759
P25
Q502895
USER
Which female person was the parent of Jalisco B ?
(Q1679759,P25,c(Q502895))
action filter_type
action find
entity Q1679759
relation P25
type Q502895
['Q1679759', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q1679759 property:P25 ?b }
Jalisco B
action filter_type
action find
entity Jalisco B
relation mother
type common name
['Jalisco B', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Jalisco_B property:mother ?b }
[]
common name
Q22318493
SYSTEM
Tanagra
Q22318493
(Q1679759,P25,c(Q502895))
action filter_type
action find
entity Q1679759
relation P25
type Q502895
[ANSWER] was the parent of Jalisco B
['Q1679759', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q1679759 property:P25 ?b }
Tanagra
Tanagra was the parent of Jalisco B
Tanagra
action filter_type
action find
entity Jalisco B
relation mother
type common name
['Jalisco B', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Jalisco_B property:mother ?b }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q836214 Q1679759
P25 P7
Q502895
USER
Which people were the mother of Jalisco B or are the brother of Princess Tōchi ?
OR((Q1679759,P25,c(Q502895)), (Q836214,P7,c(Q502895)))
action filter_type
action union
action find
entity Q1679759
relation P25
action find
entity Q836214
relation P7
type Q502895
{'OR': [['Q1679759', 'P25', {'concept': 'Q502895'}], ['Q836214', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . { { resource:Q1679759 property:P25 ?c } UNION { resource:Q836214 property:P7 ?c } } }
Princess Tōchi Jalisco B
action filter_type
action union
action find
entity Jalisco B
relation mother
action find
entity Princess Tōchi
relation brother
type common name
{'OR': [['Jalisco B', 'mother', {'concept': 'common name'}], ['Princess Tōchi', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . { { resource:Jalisco_B property:mother ?c } UNION { resource:Princess_Tōchi property:brother ?c } } }
[]
common name
Q837590 Q3403340 Q1284081 Q1362200 Q11503777 Q3403344 Q1046438 Q3076827 Q22318493 Q3403330
SYSTEM
Some of them are Prince Takechi, Naga, Prince Ōtsu, Toneri-shinnō, Niitabe-shinnō, Osakabe no Miko, Prince Kusakabe, Yuge, Tanagra, Hozumi-shinnō
Q11587953 Q837590 Q22318493 Q1284081 Q3403330 Q1046438 Q11503777 Q1362200 Q3403340 Q3076827 Q3403344
OR((Q1679759,P25,c(Q502895)), (Q836214,P7,c(Q502895)))
action filter_type
action union
action find
entity Q1679759
relation P25
action find
entity Q836214
relation P7
type Q502895
[ANSWERS] were the mother of Jalisco B or are the brother of Princess Tōchi
{'OR': [['Q1679759', 'P25', {'concept': 'Q502895'}], ['Q836214', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . { { resource:Q1679759 property:P25 ?c } UNION { resource:Q836214 property:P7 ?c } } }
Prince Shiki Prince Takechi Tanagra Prince Ōtsu Hozumi-shinnō Prince Kusakabe Niitabe-shinnō Toneri-shinnō Naga Yuge Osakabe no Miko
Prince Takechi, Naga, Prince Ōtsu, Toneri-shinnō, Niitabe-shinnō, Osakabe no Miko, Prince Kusakabe, Yuge, Tanagra and Hozumi-shinnō were the mother of Jalisco B or are the brother of Princess Tōchi
Prince Takechi Naga Prince Ōtsu Toneri-shinnō Niitabe-shinnō Osakabe no Miko Prince Kusakabe Yuge Tanagra Hozumi-shinnō
action filter_type
action union
action find
entity Jalisco B
relation mother
action find
entity Princess Tōchi
relation brother
type common name
{'OR': [['Jalisco B', 'mother', {'concept': 'common name'}], ['Princess Tōchi', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . { { resource:Jalisco_B property:mother ?c } UNION { resource:Princess_Tōchi property:brother ?c } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7736298 Q1046438
P9 P86
Q502895
USER
Which people are the siblings of Prince Kusakabe or composed The Ghost Train ?
OR((Q1046438,P9,c(Q502895)), (Q7736298,P86,c(Q502895)))
action filter_type
action union
action find
entity Q1046438
relation P9
action find
entity Q7736298
relation P86
type Q502895
{'OR': [['Q1046438', 'P9', {'concept': 'Q502895'}], ['Q7736298', 'P86', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . { { resource:Q1046438 property:P9 ?d } UNION { resource:Q7736298 property:P86 ?d } } }
The Ghost Train Prince Kusakabe
action filter_type
action union
action find
entity Prince Kusakabe
relation sister
action find
entity The Ghost Train
relation composer
type common name
{'OR': [['Prince Kusakabe', 'sister', {'concept': 'common name'}], ['The Ghost Train', 'composer', {'concept': 'common name'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . { { resource:Prince_Kusakabe property:sister ?d } UNION { resource:The_Ghost_Train property:composer ?d } } }
[]
common name
Q985739 Q213925 Q7244845 Q836214 Q858974 Q859218 Q985724 Q233224 Q7244631
SYSTEM
Princess Ōku, Walter Goehr, Princess Tajima, Princess Tōchi, Takata, Ki, Taki-no-himemiko, Gemmei, Hatsusebe
Q985739 Q213925 Q7244845 Q836214 Q858974 Q859218 Q985724 Q233224 Q7244631
OR((Q1046438,P9,c(Q502895)), (Q7736298,P86,c(Q502895)))
action filter_type
action union
action find
entity Q1046438
relation P9
action find
entity Q7736298
relation P86
type Q502895
[ANSWERS] are the siblings of Prince Kusakabe or composed The Ghost Train
{'OR': [['Q1046438', 'P9', {'concept': 'Q502895'}], ['Q7736298', 'P86', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . { { resource:Q1046438 property:P9 ?d } UNION { resource:Q7736298 property:P86 ?d } } }
Princess Ōku Walter Goehr Princess Tajima Princess Tōchi Takata Ki Taki-no-himemiko Gemmei Hatsusebe
Princess Ōku, Walter Goehr, Princess Tajima, Princess Tōchi, Takata, Ki, Taki-no-himemiko, Gemmei and Hatsusebe are the siblings of Prince Kusakabe or composed The Ghost Train
Princess Ōku Walter Goehr Princess Tajima Princess Tōchi Takata Ki Taki-no-himemiko Gemmei Hatsusebe
action filter_type
action union
action find
entity Prince Kusakabe
relation sister
action find
entity The Ghost Train
relation composer
type common name
{'OR': [['Prince Kusakabe', 'sister', {'concept': 'common name'}], ['The Ghost Train', 'composer', {'concept': 'common name'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . { { resource:Prince_Kusakabe property:sister ?d } UNION { resource:The_Ghost_Train property:composer ?d } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q233224
P26
Q502895
USER
Which person has that one as spouse ?
(c(Q502895),P26,Q233224)
action filter_type
action find
entity Q233224
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q233224']
SELECT DISTINCT ?l WHERE { resource:Q233224 property:P26 ?l . ?l rdf:type ontology:Q502895 }
Gemmei
action filter_type
action find
entity Gemmei
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Gemmei']
SELECT DISTINCT ?l WHERE { resource:Gemmei property:spouse ?l . ?l rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q213925
SYSTEM
Did you mean Walter Goehr ?
Q985739 Q213925 Q7244845 Q836214 Q858974 Q859218 Q985724 Q233224 Q7244631
(c(Q502895),P26,Q985739) (c(Q502895),P26,Q213925) (c(Q502895),P26,Q7244845) (c(Q502895),P26,Q836214) (c(Q502895),P26,Q858974) (c(Q502895),P26,Q859218) (c(Q502895),P26,Q985724) (c(Q502895),P26,Q233224) (c(Q502895),P26,Q7244631)
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q985739'] [{'concept': 'Q502895'}, 'P26', 'Q213925'] [{'concept': 'Q502895'}, 'P26', 'Q7244845'] [{'concept': 'Q502895'}, 'P26', 'Q836214'] [{'concept': 'Q502895'}, 'P26', 'Q858974'] [{'concept': 'Q502895'}, 'P26', 'Q859218'] [{'concept': 'Q502895'}, 'P26', 'Q985724'] [{'concept': 'Q502895'}, 'P26', 'Q233224'] [{'concept': 'Q502895'}, 'P26', 'Q7244631']
SELECT DISTINCT ?l WHERE { resource:Q233224 property:P26 ?l . ?l rdf:type ontology:Q502895 }
Princess Ōku Walter Goehr Princess Tajima Princess Tōchi Takata Ki Taki-no-himemiko Gemmei Hatsusebe
Did you mean Walter Goehr ?
Walter Goehr
[{'concept': 'common name'}, 'spouse', 'Princess Ōku'] [{'concept': 'common name'}, 'spouse', 'Walter Goehr'] [{'concept': 'common name'}, 'spouse', 'Princess Tajima'] [{'concept': 'common name'}, 'spouse', 'Princess Tōchi'] [{'concept': 'common name'}, 'spouse', 'Takata'] [{'concept': 'common name'}, 'spouse', 'Ki'] [{'concept': 'common name'}, 'spouse', 'Taki-no-himemiko'] [{'concept': 'common name'}, 'spouse', 'Gemmei'] [{'concept': 'common name'}, 'spouse', 'Hatsusebe']
SELECT DISTINCT ?l WHERE { resource:Gemmei property:spouse ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Gemmei. Could you tell me the answer for that?
(c(Q502895),P26,Q233224)
Q233224
[{'concept': 'Q502895'}, 'P26', 'Q233224']
[{'concept': 'common name'}, 'spouse', 'Gemmei']
[]
Q1046438
SYSTEM
Prince Kusakabe
Q1046438
(c(Q502895),P26,Q233224)
action filter_type
action find
entity Q233224
relation P26
type Q502895
[ANSWER] has that one as spouse
[{'concept': 'Q502895'}, 'P26', 'Q233224']
SELECT DISTINCT ?l WHERE { resource:Q233224 property:P26 ?l . ?l rdf:type ontology:Q502895 }
Prince Kusakabe
Prince Kusakabe has that one as spouse
Prince Kusakabe
action filter_type
action find
entity Gemmei
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Gemmei']
SELECT DISTINCT ?l WHERE { resource:Gemmei property:spouse ?l . ?l rdf:type ontology:common_name }
[]