Simple Question (Direct)
Simple Question
Q4993
P25
Q502895
USER
Who was the mom of Emperor Muzong of Liao ?
(Q4993,P25,c(Q502895))
action filter_type
action find
entity Q4993
relation P25
type Q502895
['Q4993', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q4993 property:P25 ?i . ?i rdf:type ontology:Q502895 }
Emperor Muzong of Liao
action filter_type
action find
entity Emperor Muzong of Liao
relation mother
type common name
['Emperor Muzong of Liao', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Emperor_Muzong_of_Liao property:mother ?i . ?i rdf:type ontology:common_name }
[]
common name
Q8254163
SYSTEM
Empress Xiao Wen
Q8254163
(Q4993,P25,c(Q502895))
action filter_type
action find
entity Q4993
relation P25
type Q502895
The mom of Emperor Muzong of Liao was the [ANSWER]
['Q4993', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q4993 property:P25 ?i . ?i rdf:type ontology:Q502895 }
Empress Xiao Wen
The mom of Emperor Muzong of Liao was the Empress Xiao Wen
Empress Xiao Wen
action filter_type
action find
entity Emperor Muzong of Liao
relation mother
type common name
['Emperor Muzong of Liao', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Emperor_Muzong_of_Liao property:mother ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8254163
P26
Q502895
USER
Which person has that one as spouse ?
(c(Q502895),P26,Q8254163)
action filter_type
action find
entity Q8254163
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q8254163']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q8254163 property:P26 ?a }
Empress Xiao Wen
action filter_type
action find
entity Empress Xiao Wen
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Empress Xiao Wen']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Empress_Xiao_Wen property:spouse ?a }
[]
common name
Q4991
SYSTEM
Taizong
Q4991
(c(Q502895),P26,Q8254163)
action filter_type
action find
entity Q8254163
relation P26
type Q502895
[ANSWER] has that one as spouse
[{'concept': 'Q502895'}, 'P26', 'Q8254163']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q8254163 property:P26 ?a }
Taizong
Taizong has that one as spouse
Taizong
action filter_type
action find
entity Empress Xiao Wen
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Empress Xiao Wen']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Empress_Xiao_Wen property:spouse ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4993
P21
Q290
USER
What is the sex of Emperor Muzong of Liao ?
(Q4993,P21,c(Q290))
action filter_type
action find
entity Q4993
relation P21
type Q290
['Q4993', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q4993 property:P21 ?s . ?s rdf:type ontology:Q290 }
Emperor Muzong of Liao
action filter_type
action find
entity Emperor Muzong of Liao
relation gender
type sex
['Emperor Muzong of Liao', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Emperor_Muzong_of_Liao property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4993,P21,c(Q290))
action filter_type
action find
entity Q4993
relation P21
type Q290
The sex of Emperor Muzong of Liao is the [ANSWER]
['Q4993', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q4993 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
The sex of Emperor Muzong of Liao is the male
male
action filter_type
action find
entity Emperor Muzong of Liao
relation gender
type sex
['Emperor Muzong of Liao', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Emperor_Muzong_of_Liao property:gender ?s . ?s rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4993
P40
Q502895
USER
Which people have Emperor Muzong of Liao as a child ?
(c(Q502895),P40,Q4993)
action filter_type
action find_reverse
entity Q4993
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q4993']
SELECT DISTINCT ?p WHERE { ?p property:P40 resource:Q4993 . ?p rdf:type ontology:Q502895 }
Emperor Muzong of Liao
action filter_type
action find_reverse
entity Emperor Muzong of Liao
relation child
type common name
[{'concept': 'common name'}, 'child', 'Emperor Muzong of Liao']
SELECT DISTINCT ?p WHERE { ?p property:child resource:Emperor_Muzong_of_Liao . ?p rdf:type ontology:common_name }
[]
common name
Q4991 Q8254163
SYSTEM
Taizong, Empress Xiao Wen
Q4991 Q8254163
(c(Q502895),P40,Q4993)
action filter_type
action find_reverse
entity Q4993
relation P40
type Q502895
[ANSWERS] have Emperor Muzong of Liao as a child
[{'concept': 'Q502895'}, 'P40', 'Q4993']
SELECT DISTINCT ?p WHERE { ?p property:P40 resource:Q4993 . ?p rdf:type ontology:Q502895 }
Taizong Empress Xiao Wen
Taizong and Empress Xiao Wen have Emperor Muzong of Liao as a child
Taizong Empress Xiao Wen
action filter_type
action find_reverse
entity Emperor Muzong of Liao
relation child
type common name
[{'concept': 'common name'}, 'child', 'Emperor Muzong of Liao']
SELECT DISTINCT ?p WHERE { ?p property:child resource:Emperor_Muzong_of_Liao . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4991
P22
Q502895
USER
Who was the dad of Taizong ?
(Q4991,P22,c(Q502895))
action filter_type
action find
entity Q4991
relation P22
type Q502895
['Q4991', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q4991 property:P22 ?z . ?z rdf:type ontology:Q502895 }
Taizong
action filter_type
action find
entity Taizong
relation father
type common name
['Taizong', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Taizong property:father ?z . ?z rdf:type ontology:common_name }
[]
common name
Q4989
SYSTEM
Emperor Taizu of Liao
Q4989
(Q4991,P22,c(Q502895))
action filter_type
action find
entity Q4991
relation P22
type Q502895
The dad of Taizong was the [ANSWER]
['Q4991', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q4991 property:P22 ?z . ?z rdf:type ontology:Q502895 }
Emperor Taizu of Liao
The dad of Taizong was the Emperor Taizu of Liao
Emperor Taizu of Liao
action filter_type
action find
entity Taizong
relation father
type common name
['Taizong', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Taizong property:father ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7803708
Q502895
USER
And what about Tim James?
(Q7803708,P22,c(Q502895))
action filter_type
action find
entity Q7803708
relation P22
type Q502895
['Q7803708', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q7803708 property:P22 ?y . ?y rdf:type ontology:Q502895 }
Tim James
action filter_type
action find
entity Tim James
relation father
type common name
['Tim James', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Tim_James property:father ?y . ?y rdf:type ontology:common_name }
[]
common name
Q880793
SYSTEM
Forrest Hood James, Jr.
Q880793
(Q7803708,P22,c(Q502895))
action filter_type
action find
entity Q7803708
relation P22
type Q502895
[ANSWER]
['Q7803708', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q7803708 property:P22 ?y . ?y rdf:type ontology:Q502895 }
Forrest Hood James, Jr.
Forrest Hood James, Jr.
action filter_type
action find
entity Tim James
relation father
type common name
['Tim James', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Tim_James property:father ?y . ?y rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q880793 Q30 Q20285
P27
Q15617994
USER
Is Forrest Hood James, Jr. a native of United States of America and Alt Schwerin ?
(Q880793,P27,Q30) (Q880793,P27,Q20285)
action is_in
entity Q880793
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q20285
relation P27
['Q880793', 'P27', 'Q30'] ['Q880793', 'P27', 'Q20285']
ASK WHERE { resource:Q880793 property:P27 resource:Q30 . resource:Q880793 property:P27 resource:Q20285 }
Forrest Hood James, Jr. United States of America Alt Schwerin
action is_in
entity Forrest Hood James, Jr.
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Alt Schwerin
relation country of citizenship
['Forrest Hood James, Jr.', 'country of citizenship', 'United States of America'] ['Forrest Hood James, Jr.', 'country of citizenship', 'Alt Schwerin']
ASK WHERE { resource:Forrest_Hood_James,_Jr. property:country_of_citizenship resource:United_States_of_America . resource:Forrest_Hood_James,_Jr. property:country_of_citizenship resource:Alt_Schwerin }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q880793,P27,Q30) (Q880793,P27,Q20285)
action is_in
entity Q880793
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q20285
relation P27
[ANSWER]
['Q880793', 'P27', 'Q30'] ['Q880793', 'P27', 'Q20285']
ASK WHERE { resource:Q880793 property:P27 resource:Q30 . resource:Q880793 property:P27 resource:Q20285 }
YES and NO respectively
action is_in
entity Forrest Hood James, Jr.
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Alt Schwerin
relation country of citizenship
['Forrest Hood James, Jr.', 'country of citizenship', 'United States of America'] ['Forrest Hood James, Jr.', 'country of citizenship', 'Alt Schwerin']
ASK WHERE { resource:Forrest_Hood_James,_Jr. property:country_of_citizenship resource:United_States_of_America . resource:Forrest_Hood_James,_Jr. property:country_of_citizenship resource:Alt_Schwerin }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q4989 Q11302767 Q16603292
P40
Q502895
USER
Does Emperor Taizu of Liao have Corey Lee and Yelü Zhigu as an offspring ?
(Q4989,P40,Q11302767) (Q4989,P40,Q16603292)
action is_in
entity Q4989
action intersection
action find_reverse
entity Q11302767
relation P40
action find_reverse
entity Q16603292
relation P40
['Q4989', 'P40', 'Q11302767'] ['Q4989', 'P40', 'Q16603292']
ASK WHERE { resource:Q4989 property:P40 resource:Q11302767 . resource:Q4989 property:P40 resource:Q16603292 }
Emperor Taizu of Liao Corey Lee Yelü Zhigu
action is_in
entity Emperor Taizu of Liao
action intersection
action find_reverse
entity Corey Lee
relation child
action find_reverse
entity Yelü Zhigu
relation child
['Emperor Taizu of Liao', 'child', 'Corey Lee'] ['Emperor Taizu of Liao', 'child', 'Yelü Zhigu']
ASK WHERE { resource:Emperor_Taizu_of_Liao property:child resource:Corey_Lee . resource:Emperor_Taizu_of_Liao property:child resource:Yelü_Zhigu }
[]
common name
SYSTEM
NO and YES respectively
(Q4989,P40,Q11302767) (Q4989,P40,Q16603292)
action is_in
entity Q4989
action intersection
action find_reverse
entity Q11302767
relation P40
action find_reverse
entity Q16603292
relation P40
[ANSWER]
['Q4989', 'P40', 'Q11302767'] ['Q4989', 'P40', 'Q16603292']
ASK WHERE { resource:Q4989 property:P40 resource:Q11302767 . resource:Q4989 property:P40 resource:Q16603292 }
NO and YES respectively
action is_in
entity Emperor Taizu of Liao
action intersection
action find_reverse
entity Corey Lee
relation child
action find_reverse
entity Yelü Zhigu
relation child
['Emperor Taizu of Liao', 'child', 'Corey Lee'] ['Emperor Taizu of Liao', 'child', 'Yelü Zhigu']
ASK WHERE { resource:Emperor_Taizu_of_Liao property:child resource:Corey_Lee . resource:Emperor_Taizu_of_Liao property:child resource:Yelü_Zhigu }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do approximately 2584 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2584
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { FILTER ( ?u = 2584 ) . { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:P1303 ?r . ?v rdf:type ontology:Q502895 . ?r rdf:type ontology:Q34379 } GROUP BY ?r } }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2584
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { FILTER ( ?u = 2584 ) . { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:instrument ?r . ?v rdf:type ontology:common_name . ?r rdf:type ontology:musical_instrument } GROUP BY ?r } }
[]
musical instrument common name
SYSTEM
4
Q46185 Q8338 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2584
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { FILTER ( ?u = 2584 ) . { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:P1303 ?r . ?v rdf:type ontology:Q502895 . ?r rdf:type ontology:Q34379 } GROUP BY ?r } }
bass guitar trumpet organ drum kit
4
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2584
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { FILTER ( ?u = 2584 ) . { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:instrument ?r . ?v rdf:type ontology:common_name . ?r rdf:type ontology:musical_instrument } GROUP BY ?r } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q4989
P21 P7
Q502895
USER
Which people are Emperor Taizu of Liao a brother of and are a male ?
AND((c(Q502895),P7,Q4989), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q4989
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q4989'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?b WHERE { ?b property:P21 resource:Q6581097 . ?b property:P7 resource:Q4989 . ?b rdf:type ontology:Q502895 }
male Emperor Taizu of Liao
action filter_type
action intersection
action find_reverse
entity Emperor Taizu of Liao
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Emperor Taizu of Liao'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?b WHERE { ?b property:gender resource:male . ?b property:brother resource:Emperor_Taizu_of_Liao . ?b rdf:type ontology:common_name }
[]
common name
Q10593949 Q11610775 Q10658829 Q5956233 Q11610815
SYSTEM
Yelü Lage, Yelü Anduan, Yelü Yindidan, Yelü Diela, Yelü Su
Q10593949 Q11610775 Q10658829 Q5956233 Q11610815
AND((c(Q502895),P7,Q4989), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q4989
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] are Emperor Taizu of Liao a brother of and are a male
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q4989'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?b WHERE { ?b property:P21 resource:Q6581097 . ?b property:P7 resource:Q4989 . ?b rdf:type ontology:Q502895 }
Yelü Lage Yelü Anduan Yelü Yindidan Yelü Diela Yelü Su
Yelü Lage, Yelü Anduan, Yelü Yindidan, Yelü Diela and Yelü Su are Emperor Taizu of Liao a brother of and are a male
Yelü Lage Yelü Anduan Yelü Yindidan Yelü Diela Yelü Su
action filter_type
action intersection
action find_reverse
entity Emperor Taizu of Liao
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Emperor Taizu of Liao'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?b WHERE { ?b property:gender resource:male . ?b property:brother resource:Emperor_Taizu_of_Liao . ?b rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q495653
P40
Q502895
USER
Do Andreas Adityawarman have those ones as a child ?
(Q495653,P40,Q10593949) (Q495653,P40,Q11610775) (Q495653,P40,Q10658829) (Q495653,P40,Q5956233) (Q495653,P40,Q11610815)
action is_in
entity prev_answer
action find
entity Q495653
relation P40
['Q495653', 'P40', 'Q10593949'] ['Q495653', 'P40', 'Q11610775'] ['Q495653', 'P40', 'Q10658829'] ['Q495653', 'P40', 'Q5956233'] ['Q495653', 'P40', 'Q11610815']
ASK WHERE { resource:Q495653 property:P40 ?b . VALUES ( ?b ) { ( resource:Q10593949 ) ( resource:Q11610775 ) ( resource:Q10658829 ) } }
Andreas Adityawarman
action is_in
entity prev_answer
action find
entity Andreas Adityawarman
relation child
['Andreas Adityawarman', 'child', 'Yelü Lage'] ['Andreas Adityawarman', 'child', 'Yelü Anduan'] ['Andreas Adityawarman', 'child', 'Yelü Yindidan'] ['Andreas Adityawarman', 'child', 'Yelü Diela'] ['Andreas Adityawarman', 'child', 'Yelü Su']
ASK WHERE { resource:Andreas_Adityawarman property:child ?b . VALUES ( ?b ) { ( resource:Yelü_Lage ) ( resource:Yelü_Anduan ) ( resource:Yelü_Yindidan ) } }
[]
common name
SYSTEM
NO
(Q495653,P40,Q10593949) (Q495653,P40,Q11610775) (Q495653,P40,Q10658829) (Q495653,P40,Q5956233) (Q495653,P40,Q11610815)
action is_in
entity prev_answer
action find
entity Q495653
relation P40
[ANSWER]
['Q495653', 'P40', 'Q10593949'] ['Q495653', 'P40', 'Q11610775'] ['Q495653', 'P40', 'Q10658829'] ['Q495653', 'P40', 'Q5956233'] ['Q495653', 'P40', 'Q11610815']
ASK WHERE { resource:Q495653 property:P40 ?b . VALUES ( ?b ) { ( resource:Q10593949 ) ( resource:Q11610775 ) ( resource:Q10658829 ) } }
No
action is_in
entity prev_answer
action find
entity Andreas Adityawarman
relation child
['Andreas Adityawarman', 'child', 'Yelü Lage'] ['Andreas Adityawarman', 'child', 'Yelü Anduan'] ['Andreas Adityawarman', 'child', 'Yelü Yindidan'] ['Andreas Adityawarman', 'child', 'Yelü Diela'] ['Andreas Adityawarman', 'child', 'Yelü Su']
ASK WHERE { resource:Andreas_Adityawarman property:child ?b . VALUES ( ?b ) { ( resource:Yelü_Lage ) ( resource:Yelü_Anduan ) ( resource:Yelü_Yindidan ) } }
[]