Simple Question (Direct)
Simple Question
Q6833034
P937
Q852446
USER
What is the work location of Michael Needham ?
(Q6833034,P937,c(Q852446))
action filter_type
action find
entity Q6833034
relation P937
type Q852446
['Q6833034', 'P937', {'concept': 'Q852446'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q852446 . resource:Q6833034 property:P937 ?r }
Michael Needham
action filter_type
action find
entity Michael Needham
relation work location
type administrative territorial entity of the United States
['Michael Needham', 'work location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity_of_the_United_States . resource:Michael_Needham property:work_location ?r }
[]
administrative territorial entity of the United States
Q25280
SYSTEM
Harrisburg
Q25280
(Q6833034,P937,c(Q852446))
action filter_type
action find
entity Q6833034
relation P937
type Q852446
The work location of Michael Needham is in [ANSWER]
['Q6833034', 'P937', {'concept': 'Q852446'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q852446 . resource:Q6833034 property:P937 ?r }
Harrisburg
The work location of Michael Needham is in Harrisburg
Harrisburg
action filter_type
action find
entity Michael Needham
relation work location
type administrative territorial entity of the United States
['Michael Needham', 'work location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity_of_the_United_States . resource:Michael_Needham property:work_location ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6833034
P106
Q12737077
USER
What is the job of Michael Needham ?
(Q6833034,P106,c(Q12737077))
action filter_type
action find
entity Q6833034
relation P106
type Q12737077
['Q6833034', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q6833034 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Michael Needham
action filter_type
action find
entity Michael Needham
relation occupation
type occupation
['Michael Needham', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Michael_Needham property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q6833034,P106,c(Q12737077))
action filter_type
action find
entity Q6833034
relation P106
type Q12737077
The job of Michael Needham is a [ANSWER]
['Q6833034', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q6833034 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
politician
The job of Michael Needham is a politician
politician
action filter_type
action find
entity Michael Needham
relation occupation
type occupation
['Michael Needham', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Michael_Needham property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6833034
P102
Q7210356
USER
Which political organization is Michael Needham a member of ?
(Q6833034,P102,c(Q7210356))
action filter_type
action find
entity Q6833034
relation P102
type Q7210356
['Q6833034', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?d WHERE { resource:Q6833034 property:P102 ?d . ?d rdf:type ontology:Q7210356 }
Michael Needham
action filter_type
action find
entity Michael Needham
relation member of political party
type political organization
['Michael Needham', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?d WHERE { resource:Michael_Needham property:member_of_political_party ?d . ?d rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q6833034,P102,c(Q7210356))
action filter_type
action find
entity Q6833034
relation P102
type Q7210356
The [ANSWER] is Michael Needham a member of
['Q6833034', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?d WHERE { resource:Q6833034 property:P102 ?d . ?d rdf:type ontology:Q7210356 }
Democratic Party
The Democratic Party is Michael Needham a member of
Democratic Party
action filter_type
action find
entity Michael Needham
relation member of political party
type political organization
['Michael Needham', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?d WHERE { resource:Michael_Needham property:member_of_political_party ?d . ?d rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29552
P749
Q7210356
USER
Which political organizations are owned by that one ?
(c(Q7210356),P749,Q29552)
action filter_type
action find_reverse
entity Q29552
relation P749
type Q7210356
[{'concept': 'Q7210356'}, 'P749', 'Q29552']
SELECT DISTINCT ?s WHERE { ?s property:P749 resource:Q29552 . ?s rdf:type ontology:Q7210356 }
Democratic Party
action filter_type
action find_reverse
entity Democratic Party
relation parent organization
type political organization
[{'concept': 'political organization'}, 'parent organization', 'Democratic Party']
SELECT DISTINCT ?s WHERE { ?s property:parent_organization resource:Democratic_Party . ?s rdf:type ontology:political_organization }
[]
political organization
Q7008134 Q5020399
SYSTEM
New Hampshire Democratic Party, California Democratic Party
Q7008134 Q5020399
(c(Q7210356),P749,Q29552)
action filter_type
action find_reverse
entity Q29552
relation P749
type Q7210356
And [ANSWERS] are owned by that one
[{'concept': 'Q7210356'}, 'P749', 'Q29552']
SELECT DISTINCT ?s WHERE { ?s property:P749 resource:Q29552 . ?s rdf:type ontology:Q7210356 }
New Hampshire Democratic Party California Democratic Party
And New Hampshire Democratic Party and California Democratic Party are owned by that one
New Hampshire Democratic Party California Democratic Party
action filter_type
action find_reverse
entity Democratic Party
relation parent organization
type political organization
[{'concept': 'political organization'}, 'parent organization', 'Democratic Party']
SELECT DISTINCT ?s WHERE { ?s property:parent_organization resource:Democratic_Party . ?s rdf:type ontology:political_organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7008134
P361
Q7210356
USER
What is that one a portion of ?
(Q7008134,P361,c(Q7210356))
action filter_type
action find
entity Q7008134
relation P361
type Q7210356
['Q7008134', 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q7210356 . resource:Q7008134 property:P361 ?d }
New Hampshire Democratic Party
action filter_type
action find
entity New Hampshire Democratic Party
relation part of
type political organization
['New Hampshire Democratic Party', 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_organization . resource:New_Hampshire_Democratic_Party property:part_of ?d }
[]
political organization
Clarification for simple ques.
Q7008134
SYSTEM
Did you mean New Hampshire Democratic Party ?
Q7008134 Q5020399
(Q7008134,P361,c(Q7210356)) (Q5020399,P361,c(Q7210356))
[ANSWER]
['Q7008134', 'P361', {'concept': 'Q7210356'}] ['Q5020399', 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q7210356 . resource:Q7008134 property:P361 ?d }
New Hampshire Democratic Party California Democratic Party
Did you mean New Hampshire Democratic Party ?
New Hampshire Democratic Party
['New Hampshire Democratic Party', 'part of', {'concept': 'political organization'}] ['California Democratic Party', 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_organization . resource:New_Hampshire_Democratic_Party property:part_of ?d }
[]
Simple Question (Coreferenced)
USER
Yes
(Q7008134,P361,c(Q7210356))
['Q7008134', 'P361', {'concept': 'Q7210356'}]
['New Hampshire Democratic Party', 'part of', {'concept': 'political organization'}]
[]
Q29552
SYSTEM
Democratic Party
Q29552
(Q7008134,P361,c(Q7210356))
action filter_type
action find
entity Q7008134
relation P361
type Q7210356
That one a portion of is the [ANSWER]
['Q7008134', 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q7210356 . resource:Q7008134 property:P361 ?d }
Democratic Party
That one a portion of is the Democratic Party
Democratic Party
action filter_type
action find
entity New Hampshire Democratic Party
relation part of
type political organization
['New Hampshire Democratic Party', 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_organization . resource:New_Hampshire_Democratic_Party property:part_of ?d }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q29552 Q30 Q632811
P17
Q15617994
USER
Is that political organization present in United States of America and Dornstadt ?
(Q29552,P17,Q30) (Q29552,P17,Q632811)
action is_in
entity Q29552
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q632811
relation P17
['Q29552', 'P17', 'Q30'] ['Q29552', 'P17', 'Q632811']
ASK WHERE { resource:Q29552 property:P17 resource:Q30 . resource:Q29552 property:P17 resource:Q632811 }
Democratic Party United States of America Dornstadt
action is_in
entity Democratic Party
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Dornstadt
relation country
['Democratic Party', 'country', 'United States of America'] ['Democratic Party', 'country', 'Dornstadt']
ASK WHERE { resource:Democratic_Party property:country resource:United_States_of_America . resource:Democratic_Party property:country resource:Dornstadt }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q29552,P17,Q30) (Q29552,P17,Q632811)
action is_in
entity Q29552
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q632811
relation P17
[ANSWER]
['Q29552', 'P17', 'Q30'] ['Q29552', 'P17', 'Q632811']
ASK WHERE { resource:Q29552 property:P17 resource:Q30 . resource:Q29552 property:P17 resource:Q632811 }
YES and NO respectively
action is_in
entity Democratic Party
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Dornstadt
relation country
['Democratic Party', 'country', 'United States of America'] ['Democratic Party', 'country', 'Dornstadt']
ASK WHERE { resource:Democratic_Party property:country resource:United_States_of_America . resource:Democratic_Party property:country resource:Dornstadt }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q7008134
P21 P102
Q502895
USER
Which people belong to the political party named New Hampshire Democratic Party and are a male ?
AND((c(Q502895),P102,Q7008134), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7008134
relation P102
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q7008134'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?c WHERE { ?c property:P102 resource:Q7008134 . ?c property:P21 resource:Q6581097 . ?c rdf:type ontology:Q502895 }
male New Hampshire Democratic Party
action filter_type
action intersection
action find_reverse
entity New Hampshire Democratic Party
relation member of political party
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'New Hampshire Democratic Party'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?c WHERE { ?c property:member_of_political_party resource:New_Hampshire_Democratic_Party . ?c property:gender resource:male . ?c rdf:type ontology:common_name }
[]
common name
Q1685954 Q1700376 Q1966707
SYSTEM
Samuel Dinsmoor, Jr., John Hardy Steele, Nathaniel B. Baker
Q1685954 Q1700376 Q1966707
AND((c(Q502895),P102,Q7008134), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7008134
relation P102
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] belong to the political party named New Hampshire Democratic Party and are a male
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q7008134'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?c WHERE { ?c property:P102 resource:Q7008134 . ?c property:P21 resource:Q6581097 . ?c rdf:type ontology:Q502895 }
Samuel Dinsmoor, Jr. John Hardy Steele Nathaniel B. Baker
Samuel Dinsmoor, Jr., John Hardy Steele and Nathaniel B. Baker belong to the political party named New Hampshire Democratic Party and are a male
Samuel Dinsmoor, Jr. John Hardy Steele Nathaniel B. Baker
action filter_type
action intersection
action find_reverse
entity New Hampshire Democratic Party
relation member of political party
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'New Hampshire Democratic Party'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?c WHERE { ?c property:member_of_political_party resource:New_Hampshire_Democratic_Party . ?c property:gender resource:male . ?c rdf:type ontology:common_name }
[]