Simple Question (Direct)
Simple Question
Q297493
P22
Q502895
USER
Who was the dad of Philippa Foot ?
(Q297493,P22,c(Q502895))
action filter_type
action find
entity Q297493
relation P22
type Q502895
['Q297493', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q297493 property:P22 ?u . ?u rdf:type ontology:Q502895 }
Philippa Foot
action filter_type
action find
entity Philippa Foot
relation father
type common name
['Philippa Foot', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Philippa_Foot property:father ?u . ?u rdf:type ontology:common_name }
[]
common name
Q5497238
SYSTEM
Frederick Albert Bosanquet
Q5497238
(Q297493,P22,c(Q502895))
action filter_type
action find
entity Q297493
relation P22
type Q502895
The dad of Philippa Foot was Captain [ANSWER]
['Q297493', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q297493 property:P22 ?u . ?u rdf:type ontology:Q502895 }
Frederick Albert Bosanquet
The dad of Philippa Foot was Captain Frederick Albert Bosanquet
Frederick Albert Bosanquet
action filter_type
action find
entity Philippa Foot
relation father
type common name
['Philippa Foot', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Philippa_Foot property:father ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q297493
P40
Q502895
USER
Who have Philippa Foot as a child ?
(c(Q502895),P40,Q297493)
action filter_type
action find_reverse
entity Q297493
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q297493']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q297493 . ?b rdf:type ontology:Q502895 }
Philippa Foot
action filter_type
action find_reverse
entity Philippa Foot
relation child
type common name
[{'concept': 'common name'}, 'child', 'Philippa Foot']
SELECT DISTINCT ?b WHERE { ?b property:child resource:Philippa_Foot . ?b rdf:type ontology:common_name }
[]
common name
Q5497238 Q1370025
SYSTEM
Frederick Albert Bosanquet, Esther Cleveland
Q5497238 Q1370025
(c(Q502895),P40,Q297493)
action filter_type
action find_reverse
entity Q297493
relation P40
type Q502895
[ANSWERS] have Philippa Foot as a child
[{'concept': 'Q502895'}, 'P40', 'Q297493']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q297493 . ?b rdf:type ontology:Q502895 }
Frederick Albert Bosanquet Esther Cleveland
Frederick Albert Bosanquet and Esther Cleveland have Philippa Foot as a child
Frederick Albert Bosanquet Esther Cleveland
action filter_type
action find_reverse
entity Philippa Foot
relation child
type common name
[{'concept': 'common name'}, 'child', 'Philippa Foot']
SELECT DISTINCT ?b WHERE { ?b property:child resource:Philippa_Foot . ?b rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5497238
P106
Q12737077
USER
What is the profession of that person ?
(Q5497238,P106,c(Q12737077))
action filter_type
action find
entity Q5497238
relation P106
type Q12737077
['Q5497238', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q5497238 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Frederick Albert Bosanquet
action filter_type
action find
entity Frederick Albert Bosanquet
relation occupation
type occupation
['Frederick Albert Bosanquet', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Frederick_Albert_Bosanquet property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q5497238
SYSTEM
Did you mean Frederick Albert Bosanquet ?
Q5497238 Q1370025
(Q5497238,P106,c(Q12737077)) (Q1370025,P106,c(Q12737077))
[ANSWER]
['Q5497238', 'P106', {'concept': 'Q12737077'}] ['Q1370025', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q5497238 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Frederick Albert Bosanquet Esther Cleveland
Did you mean Frederick Albert Bosanquet ?
Frederick Albert Bosanquet
['Frederick Albert Bosanquet', 'occupation', {'concept': 'occupation'}] ['Esther Cleveland', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Frederick_Albert_Bosanquet property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
Yes
(Q5497238,P106,c(Q12737077))
['Q5497238', 'P106', {'concept': 'Q12737077'}]
['Frederick Albert Bosanquet', 'occupation', {'concept': 'occupation'}]
[]
Q16533
SYSTEM
judge
Q16533
(Q5497238,P106,c(Q12737077))
action filter_type
action find
entity Q5497238
relation P106
type Q12737077
The profession of that person is a [ANSWER]
['Q5497238', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q5497238 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
judge
The profession of that person is a judge
judge
action filter_type
action find
entity Frederick Albert Bosanquet
relation occupation
type occupation
['Frederick Albert Bosanquet', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Frederick_Albert_Bosanquet property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1370025
P40
Q502895
USER
How many people have Esther Cleveland as a child ?
(c(Q502895),P40,Q1370025)
action count
action filter_type
action find_reverse
entity Q1370025
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q1370025']
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:P40 resource:Q1370025 . ?e rdf:type ontology:Q502895 }
Esther Cleveland
action count
action filter_type
action find_reverse
entity Esther Cleveland
relation child
type common name
[{'concept': 'common name'}, 'child', 'Esther Cleveland']
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:child resource:Esther_Cleveland . ?e rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q35171 Q233644
(c(Q502895),P40,Q1370025)
action count
action filter_type
action find_reverse
entity Q1370025
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q1370025']
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:P40 resource:Q1370025 . ?e rdf:type ontology:Q502895 }
Grover Cleveland Frances Folsom Cleveland Preston
2
action count
action filter_type
action find_reverse
entity Esther Cleveland
relation child
type common name
[{'concept': 'common name'}, 'child', 'Esther Cleveland']
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:child resource:Esther_Cleveland . ?e rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1370025
P25
Q502895
USER
Which female person was the parent of Esther Cleveland ?
(Q1370025,P25,c(Q502895))
action filter_type
action find
entity Q1370025
relation P25
type Q502895
['Q1370025', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q1370025 property:P25 ?a . ?a rdf:type ontology:Q502895 }
Esther Cleveland
action filter_type
action find
entity Esther Cleveland
relation mother
type common name
['Esther Cleveland', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Esther_Cleveland property:mother ?a . ?a rdf:type ontology:common_name }
[]
common name
Q233644
SYSTEM
Frances Folsom Cleveland Preston
Q233644
(Q1370025,P25,c(Q502895))
action filter_type
action find
entity Q1370025
relation P25
type Q502895
As [ANSWER] was the parent of Esther Cleveland
['Q1370025', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q1370025 property:P25 ?a . ?a rdf:type ontology:Q502895 }
Frances Folsom Cleveland Preston
As Frances Folsom Cleveland Preston was the parent of Esther Cleveland
Frances Folsom Cleveland Preston
action filter_type
action find
entity Esther Cleveland
relation mother
type common name
['Esther Cleveland', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Esther_Cleveland property:mother ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q233644
P26
Q502895
USER
Which person is the life partner of that one ?
(Q233644,P26,c(Q502895))
action filter_type
action find
entity Q233644
relation P26
type Q502895
['Q233644', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q233644 property:P26 ?r . ?r rdf:type ontology:Q502895 }
Frances Folsom Cleveland Preston
action filter_type
action find
entity Frances Folsom Cleveland Preston
relation spouse
type common name
['Frances Folsom Cleveland Preston', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Frances_Folsom_Cleveland_Preston property:spouse ?r . ?r rdf:type ontology:common_name }
[]
common name
Q35171
SYSTEM
Grover Cleveland
Q35171
(Q233644,P26,c(Q502895))
action filter_type
action find
entity Q233644
relation P26
type Q502895
[ANSWER] is the life partner of that one
['Q233644', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q233644 property:P26 ?r . ?r rdf:type ontology:Q502895 }
Grover Cleveland
Grover Cleveland is the life partner of that one
Grover Cleveland
action filter_type
action find
entity Frances Folsom Cleveland Preston
relation spouse
type common name
['Frances Folsom Cleveland Preston', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Frances_Folsom_Cleveland_Preston property:spouse ?r . ?r rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q35171 Q193348
P9
Q502895
USER
Is Roberto Di Matteo the sister of that one ?
(Q35171,P9,Q193348)
action is_in
entity Q193348
action find
entity Q35171
relation P9
['Q35171', 'P9', 'Q193348']
ASK WHERE { resource:Q35171 property:P9 resource:Q193348 }
Grover Cleveland Roberto Di Matteo
action is_in
entity Roberto Di Matteo
action find
entity Grover Cleveland
relation sister
['Grover Cleveland', 'sister', 'Roberto Di Matteo']
ASK WHERE { resource:Grover_Cleveland property:sister resource:Roberto_Di_Matteo }
[]
common name
SYSTEM
NO
(Q35171,P9,Q193348)
action is_in
entity Q193348
action find
entity Q35171
relation P9
[ANSWER]
['Q35171', 'P9', 'Q193348']
ASK WHERE { resource:Q35171 property:P9 resource:Q193348 }
No
action is_in
entity Roberto Di Matteo
action find
entity Grover Cleveland
relation sister
['Grover Cleveland', 'sister', 'Roberto Di Matteo']
ASK WHERE { resource:Grover_Cleveland property:sister resource:Roberto_Di_Matteo }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q5497238
P21 P40
Q502895
USER
Which people have Frederick Albert Bosanquet as a child and have the gender as male ?
AND((c(Q502895),P40,Q5497238), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q5497238
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q5497238'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?f WHERE { ?f property:P40 resource:Q5497238 . ?f property:P21 resource:Q6581097 . ?f rdf:type ontology:Q502895 }
male Frederick Albert Bosanquet
action filter_type
action intersection
action find_reverse
entity Frederick Albert Bosanquet
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Frederick Albert Bosanquet'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?f WHERE { ?f property:child resource:Frederick_Albert_Bosanquet . ?f property:gender resource:male . ?f rdf:type ontology:common_name }
[]
common name
Q7412469
SYSTEM
Samuel Richard Bosanquet
Q7412469
AND((c(Q502895),P40,Q5497238), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q5497238
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
And [ANSWER] have Frederick Albert Bosanquet as a child and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q5497238'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?f WHERE { ?f property:P40 resource:Q5497238 . ?f property:P21 resource:Q6581097 . ?f rdf:type ontology:Q502895 }
Samuel Richard Bosanquet
And Samuel Richard Bosanquet have Frederick Albert Bosanquet as a child and have the gender as male
Samuel Richard Bosanquet
action filter_type
action intersection
action find_reverse
entity Frederick Albert Bosanquet
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Frederick Albert Bosanquet'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?f WHERE { ?f property:child resource:Frederick_Albert_Bosanquet . ?f property:gender resource:male . ?f rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q7033929 Q297493
P27 P495
Q15617994
USER
Which administrative territories are the native countriesof Philippa Foot and are the origins of Nightmare Weekend ?
AND((Q297493,P27,c(Q15617994)), (Q7033929,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q297493
relation P27
action find
entity Q7033929
relation P495
type Q15617994
{'AND': [['Q297493', 'P27', {'concept': 'Q15617994'}], ['Q7033929', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q297493 property:P27 ?p . resource:Q7033929 property:P495 ?p }
Nightmare Weekend Philippa Foot
action filter_type
action intersection
action find
entity Philippa Foot
relation country of citizenship
action find
entity Nightmare Weekend
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Philippa Foot', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Nightmare Weekend', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Philippa_Foot property:country_of_citizenship ?p . resource:Nightmare_Weekend property:country_of_origin ?p }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
AND((Q297493,P27,c(Q15617994)), (Q7033929,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q297493
relation P27
action find
entity Q7033929
relation P495
type Q15617994
[ANSWER] is the native countriesof Philippa Foot and is the origins of Nightmare Weekend
{'AND': [['Q297493', 'P27', {'concept': 'Q15617994'}], ['Q7033929', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q297493 property:P27 ?p . resource:Q7033929 property:P495 ?p }
United Kingdom
United Kingdom is the native countriesof Philippa Foot and is the origins of Nightmare Weekend
United Kingdom
action filter_type
action intersection
action find
entity Philippa Foot
relation country of citizenship
action find
entity Nightmare Weekend
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Philippa Foot', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Nightmare Weekend', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Philippa_Foot property:country_of_citizenship ?p . resource:Nightmare_Weekend property:country_of_origin ?p }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q145 Q142 Q17108860
P530
Q15617994
USER
Does that administrative territory have tactful political relations with France and Mound Bayou Public School District ?
(Q145,P530,Q142) (Q145,P530,Q17108860)
action is_in
entity Q145
action intersection
action find_reverse
entity Q142
relation P530
action find_reverse
entity Q17108860
relation P530
['Q145', 'P530', 'Q142'] ['Q145', 'P530', 'Q17108860']
ASK WHERE { resource:Q145 property:P530 resource:Q142 . resource:Q145 property:P530 resource:Q17108860 }
United Kingdom France Mound Bayou Public School District
action is_in
entity United Kingdom
action intersection
action find_reverse
entity France
relation diplomatic relation
action find_reverse
entity Mound Bayou Public School District
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'France'] ['United Kingdom', 'diplomatic relation', 'Mound Bayou Public School District']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:France . resource:United_Kingdom property:diplomatic_relation resource:Mound_Bayou_Public_School_District }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q145,P530,Q142) (Q145,P530,Q17108860)
action is_in
entity Q145
action intersection
action find_reverse
entity Q142
relation P530
action find_reverse
entity Q17108860
relation P530
[ANSWER]
['Q145', 'P530', 'Q142'] ['Q145', 'P530', 'Q17108860']
ASK WHERE { resource:Q145 property:P530 resource:Q142 . resource:Q145 property:P530 resource:Q17108860 }
YES and NO respectively
action is_in
entity United Kingdom
action intersection
action find_reverse
entity France
relation diplomatic relation
action find_reverse
entity Mound Bayou Public School District
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'France'] ['United Kingdom', 'diplomatic relation', 'Mound Bayou Public School District']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:France . resource:United_Kingdom property:diplomatic_relation resource:Mound_Bayou_Public_School_District }
[]