Simple Question (Direct)
Simple Question
Q7529837
P39
Q12737077
USER
What were the positions held by Sir William Wray, 1st Baronet, of Glentworth ?
(Q7529837,P39,c(Q12737077))
action filter_type
action find
entity Q7529837
relation P39
type Q12737077
['Q7529837', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q7529837 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
Sir William Wray, 1st Baronet, of Glentworth
action filter_type
action find
entity Sir William Wray, 1st Baronet, of Glentworth
relation position held
type occupation
['Sir William Wray, 1st Baronet, of Glentworth', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Sir_William_Wray,_1st_Baronet,_of_Glentworth property:position_held ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q18018860 Q5756843
SYSTEM
Member of Parliament in the Parliament of England, High Sheriff of Lincolnshire
Q18018860 Q5756843
(Q7529837,P39,c(Q12737077))
action filter_type
action find
entity Q7529837
relation P39
type Q12737077
The positions held by Sir William Wray , 1st Baronet , of Glentworth were [ANSWERS]
['Q7529837', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q7529837 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
Member of Parliament in the Parliament of England High Sheriff of Lincolnshire
The positions held by Sir William Wray , 1st Baronet , of Glentworth were Member of Parliament in the Parliament of England and High Sheriff of Lincolnshire
Member of Parliament in the Parliament of England High Sheriff of Lincolnshire
action filter_type
action find
entity Sir William Wray, 1st Baronet, of Glentworth
relation position held
type occupation
['Sir William Wray, 1st Baronet, of Glentworth', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Sir_William_Wray,_1st_Baronet,_of_Glentworth property:position_held ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7529837
P40
Q502895
USER
Who are the children of that one ?
(Q18018860,P40,c(Q502895)) (Q5756843,P40,c(Q502895))
action filter_type
action find
entity Q7529837
relation P40
type Q502895
['Q18018860', 'P40', {'concept': 'Q502895'}] ['Q5756843', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q7529837 property:P40 ?d . ?d rdf:type ontology:Q502895 }
Sir William Wray, 1st Baronet, of Glentworth
action filter_type
action find
entity Sir William Wray, 1st Baronet, of Glentworth
relation child
type common name
['Member of Parliament in the Parliament of England', 'child', {'concept': 'common name'}] ['High Sheriff of Lincolnshire', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Sir_William_Wray,_1st_Baronet,_of_Glentworth property:child ?d . ?d rdf:type ontology:common_name }
[]
common name
Q7528154 Q5345999
SYSTEM
Sir John Wray, 2nd Baronet, Edward Wray
Q7528154 Q5345999
(Q18018860,P40,c(Q502895)) (Q5756843,P40,c(Q502895))
action filter_type
action find
entity Q7529837
relation P40
type Q502895
The children of that one are of [ANSWERS]
['Q18018860', 'P40', {'concept': 'Q502895'}] ['Q5756843', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q7529837 property:P40 ?d . ?d rdf:type ontology:Q502895 }
Sir John Wray, 2nd Baronet Edward Wray
The children of that one are of Sir John Wray, 2nd Baronet and Edward Wray
Sir John Wray, 2nd Baronet Edward Wray
action filter_type
action find
entity Sir William Wray, 1st Baronet, of Glentworth
relation child
type common name
['Member of Parliament in the Parliament of England', 'child', {'concept': 'common name'}] ['High Sheriff of Lincolnshire', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Sir_William_Wray,_1st_Baronet,_of_Glentworth property:child ?d . ?d rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7528154
P463
Q186081
USER
Which organizations were that person a member of ?
(Q7528154,P463,c(Q186081))
action filter_type
action find
entity Q7528154
relation P463
type Q186081
['Q7528154', 'P463', {'concept': 'Q186081'}]
SELECT DISTINCT ?q WHERE { resource:Q7528154 property:P463 ?q . ?q rdf:type ontology:Q186081 }
Sir John Wray, 2nd Baronet
action filter_type
action find
entity Sir John Wray, 2nd Baronet
relation member of
type time interval
['Sir John Wray, 2nd Baronet', 'member of', {'concept': 'time interval'}]
SELECT DISTINCT ?q WHERE { resource:Sir_John_Wray,_2nd_Baronet property:member_of ?q . ?q rdf:type ontology:time_interval }
[]
time interval
Clarification for simple ques.
Q5345999
SYSTEM
Did you mean Edward Wray ?
Q7528154 Q5345999
(Q7528154,P463,c(Q186081)) (Q5345999,P463,c(Q186081))
[ANSWER]
['Q7528154', 'P463', {'concept': 'Q186081'}] ['Q5345999', 'P463', {'concept': 'Q186081'}]
SELECT DISTINCT ?q WHERE { resource:Q7528154 property:P463 ?q . ?q rdf:type ontology:Q186081 }
Sir John Wray, 2nd Baronet Edward Wray
Did you mean Edward Wray ?
Edward Wray
['Sir John Wray, 2nd Baronet', 'member of', {'concept': 'time interval'}] ['Edward Wray', 'member of', {'concept': 'time interval'}]
SELECT DISTINCT ?q WHERE { resource:Sir_John_Wray,_2nd_Baronet property:member_of ?q . ?q rdf:type ontology:time_interval }
[]
Simple Question (Coreferenced)
USER
No, I meant Sir John Wray, 2nd Baronet. Could you tell me the answer for that?
(Q7528154,P463,c(Q186081))
Q7528154
['Q7528154', 'P463', {'concept': 'Q186081'}]
['Sir John Wray, 2nd Baronet', 'member of', {'concept': 'time interval'}]
[]
Q7901805 Q1412093 Q1153299
SYSTEM
Useless Parliament, Addled Parliament, Short Parliament
Q7901805 Q1153299 Q1412093
(Q7528154,P463,c(Q186081))
action filter_type
action find
entity Q7528154
relation P463
type Q186081
[ANSWERS]
['Q7528154', 'P463', {'concept': 'Q186081'}]
SELECT DISTINCT ?q WHERE { resource:Q7528154 property:P463 ?q . ?q rdf:type ontology:Q186081 }
Useless Parliament Short Parliament Addled Parliament
Which organizations were that person a member of
Useless Parliament Addled Parliament Short Parliament
action filter_type
action find
entity Sir John Wray, 2nd Baronet
relation member of
type time interval
['Sir John Wray, 2nd Baronet', 'member of', {'concept': 'time interval'}]
SELECT DISTINCT ?q WHERE { resource:Sir_John_Wray,_2nd_Baronet property:member_of ?q . ?q rdf:type ontology:time_interval }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q7529837
P21 P22
Q502895
USER
Which people have Sir William Wray, 1st Baronet, of Glentworth as dad and have the gender as male ?
AND((c(Q502895),P22,Q7529837), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7529837
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q7529837'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P21 resource:Q6581097 . ?r property:P22 resource:Q7529837 . ?r rdf:type ontology:Q502895 }
male Sir William Wray, 1st Baronet, of Glentworth
action filter_type
action intersection
action find_reverse
entity Sir William Wray, 1st Baronet, of Glentworth
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Sir William Wray, 1st Baronet, of Glentworth'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:gender resource:male . ?r property:father resource:Sir_William_Wray,_1st_Baronet,_of_Glentworth . ?r rdf:type ontology:common_name }
[]
common name
Q7528154 Q5345999
SYSTEM
Sir John Wray, 2nd Baronet, Edward Wray
Q7528154 Q5345999
AND((c(Q502895),P22,Q7529837), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7529837
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have Sir William Wray, 1st Baronet, of Glentworth as dad and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q7529837'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P21 resource:Q6581097 . ?r property:P22 resource:Q7529837 . ?r rdf:type ontology:Q502895 }
Sir John Wray, 2nd Baronet Edward Wray
Sir John Wray, 2nd Baronet and Edward Wray have Sir William Wray, 1st Baronet, of Glentworth as dad and have the gender as male
Sir John Wray, 2nd Baronet Edward Wray
action filter_type
action intersection
action find_reverse
entity Sir William Wray, 1st Baronet, of Glentworth
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Sir William Wray, 1st Baronet, of Glentworth'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:gender resource:male . ?r property:father resource:Sir_William_Wray,_1st_Baronet,_of_Glentworth . ?r rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7529837
P40
Q502895
USER
Do Sir William Wray, 1st Baronet, of Glentworth have those ones as a child ?
(Q7529837,P40,Q7528154) (Q7529837,P40,Q5345999)
action is_in
entity prev_answer
action find
entity Q7529837
relation P40
['Q7529837', 'P40', 'Q7528154'] ['Q7529837', 'P40', 'Q5345999']
ASK WHERE { resource:Q7529837 property:P40 ?s . VALUES ( ?s ) { ( resource:Q7528154 ) ( resource:Q5345999 ) } }
Sir William Wray, 1st Baronet, of Glentworth
action is_in
entity prev_answer
action find
entity Sir William Wray, 1st Baronet, of Glentworth
relation child
['Sir William Wray, 1st Baronet, of Glentworth', 'child', 'Sir John Wray, 2nd Baronet'] ['Sir William Wray, 1st Baronet, of Glentworth', 'child', 'Edward Wray']
ASK WHERE { resource:Sir_William_Wray,_1st_Baronet,_of_Glentworth property:child ?s . VALUES ( ?s ) { ( resource:Sir_John_Wray,_2nd_Baronet ) ( resource:Edward_Wray ) } }
[]
common name
SYSTEM
YES
(Q7529837,P40,Q7528154) (Q7529837,P40,Q5345999)
action is_in
entity prev_answer
action find
entity Q7529837
relation P40
[ANSWER]
['Q7529837', 'P40', 'Q7528154'] ['Q7529837', 'P40', 'Q5345999']
ASK WHERE { resource:Q7529837 property:P40 ?s . VALUES ( ?s ) { ( resource:Q7528154 ) ( resource:Q5345999 ) } }
Yes
action is_in
entity prev_answer
action find
entity Sir William Wray, 1st Baronet, of Glentworth
relation child
['Sir William Wray, 1st Baronet, of Glentworth', 'child', 'Sir John Wray, 2nd Baronet'] ['Sir William Wray, 1st Baronet, of Glentworth', 'child', 'Edward Wray']
ASK WHERE { resource:Sir_William_Wray,_1st_Baronet,_of_Glentworth property:child ?s . VALUES ( ?s ) { ( resource:Sir_John_Wray,_2nd_Baronet ) ( resource:Edward_Wray ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4857343 Q7528154
P40
Q502895
USER
Which people have Sir John Wray, 2nd Baronet or Josep Maria Casas-Huguet as a child ?
OR((c(Q502895),P40,Q7528154), (c(Q502895),P40,Q4857343))
action filter_type
action union
action find_reverse
entity Q7528154
relation P40
action find_reverse
entity Q4857343
relation P40
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q7528154'], [{'concept': 'Q502895'}, 'P40', 'Q4857343']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . { VALUES ( ?k ) { ( resource:Q4857343 ) ( resource:Q7528154 ) } . ?h property:P40 ?k } }
Josep Maria Casas-Huguet Sir John Wray, 2nd Baronet
action filter_type
action union
action find_reverse
entity Sir John Wray, 2nd Baronet
relation child
action find_reverse
entity Josep Maria Casas-Huguet
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'Sir John Wray, 2nd Baronet'], [{'concept': 'common name'}, 'child', 'Josep Maria Casas-Huguet']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . { VALUES ( ?k ) { ( resource:Josep_Maria_Casas-Huguet ) ( resource:Sir_John_Wray,_2nd_Baronet ) } . ?h property:child ?k } }
[]
common name
Q7529837 Q16187823
SYSTEM
Sir William Wray, 1st Baronet, of Glentworth, Josep Maria Casas i de Muller
Q7529837 Q16187823
OR((c(Q502895),P40,Q7528154), (c(Q502895),P40,Q4857343))
action filter_type
action union
action find_reverse
entity Q7528154
relation P40
action find_reverse
entity Q4857343
relation P40
type Q502895
Baronet [ANSWERS] have Sir John Wray, 2nd Baronet or Josep Maria Casas-Huguet as a child
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q7528154'], [{'concept': 'Q502895'}, 'P40', 'Q4857343']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . { VALUES ( ?k ) { ( resource:Q4857343 ) ( resource:Q7528154 ) } . ?h property:P40 ?k } }
Sir William Wray, 1st Baronet, of Glentworth Josep Maria Casas i de Muller
Baronet Sir William Wray, 1st Baronet, of Glentworth and Josep Maria Casas i de Muller have Sir John Wray, 2nd Baronet or Josep Maria Casas-Huguet as a child
Sir William Wray, 1st Baronet, of Glentworth Josep Maria Casas i de Muller
action filter_type
action union
action find_reverse
entity Sir John Wray, 2nd Baronet
relation child
action find_reverse
entity Josep Maria Casas-Huguet
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'Sir John Wray, 2nd Baronet'], [{'concept': 'common name'}, 'child', 'Josep Maria Casas-Huguet']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . { VALUES ( ?k ) { ( resource:Josep_Maria_Casas-Huguet ) ( resource:Sir_John_Wray,_2nd_Baronet ) } . ?h property:child ?k } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q7528154 Q324433
P21
Q290
USER
How many sexes do Sir John Wray, 2nd Baronet or Queen of Hearts belong to ?
(Q7528154,P21,c(Q290)) (Q324433,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q7528154
relation P21
type Q290
action filter_type
action find
entity Q324433
relation P21
type Q290
['Q7528154', 'P21', {'concept': 'Q290'}] ['Q324433', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?j property:P21 ?a . VALUES ( ?j ) { ( resource:Q7528154 ) ( resource:Q324433 ) } }
Sir John Wray, 2nd Baronet Queen of Hearts
action count
action union
action filter_type
action find
entity Sir John Wray, 2nd Baronet
relation gender
type sex
action filter_type
action find
entity Queen of Hearts
relation gender
type sex
['Sir John Wray, 2nd Baronet', 'gender', {'concept': 'sex'}] ['Queen of Hearts', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?j property:gender ?a . VALUES ( ?j ) { ( resource:Sir_John_Wray,_2nd_Baronet ) ( resource:Queen_of_Hearts ) } }
[]
sex
SYSTEM
2
Q6581097 Q6581072
(Q7528154,P21,c(Q290)) (Q324433,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q7528154
relation P21
type Q290
action filter_type
action find
entity Q324433
relation P21
type Q290
[ANSWER]
['Q7528154', 'P21', {'concept': 'Q290'}] ['Q324433', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?j property:P21 ?a . VALUES ( ?j ) { ( resource:Q7528154 ) ( resource:Q324433 ) } }
male female
2
action count
action union
action filter_type
action find
entity Sir John Wray, 2nd Baronet
relation gender
type sex
action filter_type
action find
entity Queen of Hearts
relation gender
type sex
['Sir John Wray, 2nd Baronet', 'gender', {'concept': 'sex'}] ['Queen of Hearts', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?j property:gender ?a . VALUES ( ?j ) { ( resource:Sir_John_Wray,_2nd_Baronet ) ( resource:Queen_of_Hearts ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7528154
P97
Q355567
USER
Which royal or noble rank was held by Sir John Wray, 2nd Baronet ?
(Q7528154,P97,c(Q355567))
action filter_type
action find
entity Q7528154
relation P97
type Q355567
['Q7528154', 'P97', {'concept': 'Q355567'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q355567 . resource:Q7528154 property:P97 ?u }
Sir John Wray, 2nd Baronet
action filter_type
action find
entity Sir John Wray, 2nd Baronet
relation noble title
type royal or noble rank
['Sir John Wray, 2nd Baronet', 'noble title', {'concept': 'royal or noble rank'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:royal_or_noble_rank . resource:Sir_John_Wray,_2nd_Baronet property:noble_title ?u }
[]
royal or noble rank
Q282019
SYSTEM
baronet
Q282019
(Q7528154,P97,c(Q355567))
action filter_type
action find
entity Q7528154
relation P97
type Q355567
A [ANSWER] was held by Sir John Wray, 2nd [ANSWER]
['Q7528154', 'P97', {'concept': 'Q355567'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q355567 . resource:Q7528154 property:P97 ?u }
baronet
A baronet was held by Sir John Wray, 2nd Baronet
baronet
action filter_type
action find
entity Sir John Wray, 2nd Baronet
relation noble title
type royal or noble rank
['Sir John Wray, 2nd Baronet', 'noble title', {'concept': 'royal or noble rank'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:royal_or_noble_rank . resource:Sir_John_Wray,_2nd_Baronet property:noble_title ?u }
[]