Simple Question (Direct)
Simple Question
Q5079445
P27
Q15617994
USER
Which administrative territory is Charles James Mathew an inhabitant of ?
(Q5079445,P27,c(Q15617994))
action filter_type
action find
entity Q5079445
relation P27
type Q15617994
['Q5079445', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . resource:Q5079445 property:P27 ?h }
Charles James Mathew
action filter_type
action find
entity Charles James Mathew
relation country of citizenship
type designation for an administrative territorial entity
['Charles James Mathew', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Charles_James_Mathew property:country_of_citizenship ?h }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q5079445,P27,c(Q15617994))
action filter_type
action find
entity Q5079445
relation P27
type Q15617994
The [ANSWER] is Charles James Mathew an inhabitant of
['Q5079445', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . resource:Q5079445 property:P27 ?h }
United Kingdom
The United Kingdom is Charles James Mathew an inhabitant of
United Kingdom
action filter_type
action find
entity Charles James Mathew
relation country of citizenship
type designation for an administrative territorial entity
['Charles James Mathew', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Charles_James_Mathew property:country_of_citizenship ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5079445
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q145,P39,c(Q12737077))
action filter_type
action find
entity Q5079445
relation P39
type Q12737077
['Q145', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q5079445 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Charles James Mathew
action filter_type
action find
entity Charles James Mathew
relation position held
type occupation
['United Kingdom', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Charles_James_Mathew property:position_held ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q145,P39,c(Q12737077))
action filter_type
action find
entity Q5079445
relation P39
type Q12737077
The [ANSWER] was a position held by that person
['Q145', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q5079445 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Member of Parliament in the United Kingdom
The Member of Parliament in the United Kingdom was a position held by that person
Member of Parliament in the United Kingdom
action filter_type
action find
entity Charles James Mathew
relation position held
type occupation
['United Kingdom', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Charles_James_Mathew property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5079445
P21
Q290
USER
What is the sex of that person ?
(Q16707842,P21,c(Q290))
action filter_type
action find
entity Q5079445
relation P21
type Q290
['Q16707842', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q5079445 property:P21 ?e . ?e rdf:type ontology:Q290 }
Charles James Mathew
action filter_type
action find
entity Charles James Mathew
relation gender
type sex
['Member of Parliament in the United Kingdom', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Charles_James_Mathew property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16707842,P21,c(Q290))
action filter_type
action find
entity Q5079445
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q16707842', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q5079445 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Charles James Mathew
relation gender
type sex
['Member of Parliament in the United Kingdom', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Charles_James_Mathew property:gender ?e . ?e rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q16734574 Q5079445
P21
Q290
USER
And also Trip Pittman
AND((Q5079445,P21,c(Q290)), (Q16734574,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q5079445
relation P21
action find
entity Q16734574
relation P21
type Q290
{'AND': [['Q5079445', 'P21', {'concept': 'Q290'}], ['Q16734574', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?g WHERE { resource:Q16734574 property:P21 ?g . resource:Q5079445 property:P21 ?g . ?g rdf:type ontology:Q290 }
Trip Pittman Charles James Mathew
action filter_type
action intersection
action find
entity Charles James Mathew
relation gender
action find
entity Trip Pittman
relation gender
type sex
{'AND': [['Charles James Mathew', 'gender', {'concept': 'sex'}], ['Trip Pittman', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?g WHERE { resource:Trip_Pittman property:gender ?g . resource:Charles_James_Mathew property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
AND((Q5079445,P21,c(Q290)), (Q16734574,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q5079445
relation P21
action find
entity Q16734574
relation P21
type Q290
[ANSWER]
{'AND': [['Q5079445', 'P21', {'concept': 'Q290'}], ['Q16734574', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?g WHERE { resource:Q16734574 property:P21 ?g . resource:Q5079445 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
male
action filter_type
action intersection
action find
entity Charles James Mathew
relation gender
action find
entity Trip Pittman
relation gender
type sex
{'AND': [['Charles James Mathew', 'gender', {'concept': 'sex'}], ['Trip Pittman', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?g WHERE { resource:Trip_Pittman property:gender ?g . resource:Charles_James_Mathew property:gender ?g . ?g rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q16707842 Q2290557
P106
Q502895
USER
How many people have a job as Member of Parliament in the United Kingdom or sociology of the family ?
(c(Q502895),P106,Q16707842) (c(Q502895),P106,Q2290557)
action count
action union
action filter_type
action find_reverse
entity Q16707842
relation P106
type Q502895
action filter_type
action find_reverse
entity Q2290557
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q16707842'] [{'concept': 'Q502895'}, 'P106', 'Q2290557']
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { ?r rdf:type ontology:Q502895 . ?r property:P106 resource:Q16707842 } UNION { ?r rdf:type ontology:Q502895 . ?r property:P106 resource:Q2290557 } }
Member of Parliament in the United Kingdom sociology of the family
action count
action union
action filter_type
action find_reverse
entity Member of Parliament in the United Kingdom
relation occupation
type common name
action filter_type
action find_reverse
entity sociology of the family
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of Parliament in the United Kingdom'] [{'concept': 'common name'}, 'occupation', 'sociology of the family']
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { ?r rdf:type ontology:common_name . ?r property:occupation resource:Member_of_Parliament_in_the_United_Kingdom } UNION { ?r rdf:type ontology:common_name . ?r property:occupation resource:sociology_of_the_family } }
[]
common name
SYSTEM
5
Q21548870 Q24292009 Q24573112 Q21856725 Q18593670
(c(Q502895),P106,Q16707842) (c(Q502895),P106,Q2290557)
action count
action union
action filter_type
action find_reverse
entity Q16707842
relation P106
type Q502895
action filter_type
action find_reverse
entity Q2290557
relation P106
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q16707842'] [{'concept': 'Q502895'}, 'P106', 'Q2290557']
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { ?r rdf:type ontology:Q502895 . ?r property:P106 resource:Q16707842 } UNION { ?r rdf:type ontology:Q502895 . ?r property:P106 resource:Q2290557 } }
Wilson Jones Sir James Hamlyn-Williams, 3rd Baronet David Lewis Edward Stanley Julie Pagis
5
action count
action union
action filter_type
action find_reverse
entity Member of Parliament in the United Kingdom
relation occupation
type common name
action filter_type
action find_reverse
entity sociology of the family
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of Parliament in the United Kingdom'] [{'concept': 'common name'}, 'occupation', 'sociology of the family']
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { ?r rdf:type ontology:common_name . ?r property:occupation resource:Member_of_Parliament_in_the_United_Kingdom } UNION { ?r rdf:type ontology:common_name . ?r property:occupation resource:sociology_of_the_family } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6369866
P19
Q56061
USER
Where was Karen Mayne born ?
(Q6369866,P19,c(Q56061))
action filter_type
action find
entity Q6369866
relation P19
type Q56061
['Q6369866', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q6369866 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Karen Mayne
action filter_type
action find
entity Karen Mayne
relation place of birth
type administrative territorial entity
['Karen Mayne', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Karen_Mayne property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q23337
SYSTEM
Salt Lake City
Q23337
(Q6369866,P19,c(Q56061))
action filter_type
action find
entity Q6369866
relation P19
type Q56061
Karen Mayne was born in [ANSWER]
['Q6369866', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q6369866 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Salt Lake City
Karen Mayne was born in Salt Lake City
Salt Lake City
action filter_type
action find
entity Karen Mayne
relation place of birth
type administrative territorial entity
['Karen Mayne', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Karen_Mayne property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6369866
P26
Q502895
USER
Which person is the spouse of that one ?
(Q23337,P26,c(Q502895))
action filter_type
action find
entity Q6369866
relation P26
type Q502895
['Q23337', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q6369866 property:P26 ?w . ?w rdf:type ontology:Q502895 }
Karen Mayne
action filter_type
action find
entity Karen Mayne
relation spouse
type common name
['Salt Lake City', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Karen_Mayne property:spouse ?w . ?w rdf:type ontology:common_name }
[]
common name
Q5335131
SYSTEM
Ed Mayne
Q5335131
(Q23337,P26,c(Q502895))
action filter_type
action find
entity Q6369866
relation P26
type Q502895
[ANSWER] is the spouse of that one
['Q23337', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q6369866 property:P26 ?w . ?w rdf:type ontology:Q502895 }
Ed Mayne
Ed Mayne is the spouse of that one
Ed Mayne
action filter_type
action find
entity Karen Mayne
relation spouse
type common name
['Salt Lake City', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Karen_Mayne property:spouse ?w . ?w rdf:type ontology:common_name }
[]