Simple Question (Direct)
Simple Question
Q3296431
P102
Q7278
USER
Which political party is María Dolores Pallero Espadero a member of ?
(Q3296431,P102,c(Q7278))
action filter_type
action find
entity Q3296431
relation P102
type Q7278
['Q3296431', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?q WHERE { resource:Q3296431 property:P102 ?q . ?q rdf:type ontology:Q7278 }
María Dolores Pallero Espadero
action filter_type
action find
entity María Dolores Pallero Espadero
relation member of political party
type political party
['María Dolores Pallero Espadero', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?q WHERE { resource:María_Dolores_Pallero_Espadero property:member_of_political_party ?q . ?q rdf:type ontology:political_party }
[]
political party
Q138198
SYSTEM
Spanish Socialist Workers' Party
Q138198
(Q3296431,P102,c(Q7278))
action filter_type
action find
entity Q3296431
relation P102
type Q7278
[ANSWER] is María Dolores Pallero Espadero a member of
['Q3296431', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?q WHERE { resource:Q3296431 property:P102 ?q . ?q rdf:type ontology:Q7278 }
Spanish Socialist Workers' Party
Spanish Socialist Workers' Party is María Dolores Pallero Espadero a member of
Spanish Socialist Workers' Party
action filter_type
action find
entity María Dolores Pallero Espadero
relation member of political party
type political party
['María Dolores Pallero Espadero', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?q WHERE { resource:María_Dolores_Pallero_Espadero property:member_of_political_party ?q . ?q rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3296431
P1412
Q34770
USER
Which language is spoken by that person ?
(Q138198,P1412,c(Q34770))
action filter_type
action find
entity Q3296431
relation P1412
type Q34770
['Q138198', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q34770 . resource:Q3296431 property:P1412 ?j }
María Dolores Pallero Espadero
action filter_type
action find
entity María Dolores Pallero Espadero
relation languages spoken, written or signed
type language
["Spanish Socialist Workers' Party", 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:language . resource:María_Dolores_Pallero_Espadero property:languages_spoken,_written_or_signed ?j }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q138198,P1412,c(Q34770))
action filter_type
action find
entity Q3296431
relation P1412
type Q34770
[ANSWER] is spoken by that person
['Q138198', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q34770 . resource:Q3296431 property:P1412 ?j }
Spanish
Spanish is spoken by that person
Spanish
action filter_type
action find
entity María Dolores Pallero Espadero
relation languages spoken, written or signed
type language
["Spanish Socialist Workers' Party", 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:language . resource:María_Dolores_Pallero_Espadero property:languages_spoken,_written_or_signed ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3296431
P27
Q15617994
USER
Which administrative territory is María Dolores Pallero Espadero an inhabitant of ?
(Q3296431,P27,c(Q15617994))
action filter_type
action find
entity Q3296431
relation P27
type Q15617994
['Q3296431', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q3296431 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
María Dolores Pallero Espadero
action filter_type
action find
entity María Dolores Pallero Espadero
relation country of citizenship
type designation for an administrative territorial entity
['María Dolores Pallero Espadero', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:María_Dolores_Pallero_Espadero property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q3296431,P27,c(Q15617994))
action filter_type
action find
entity Q3296431
relation P27
type Q15617994
[ANSWER] is María Dolores Pallero Espadero an inhabitant of
['Q3296431', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q3296431 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Spain
Spain is María Dolores Pallero Espadero an inhabitant of
Spain
action filter_type
action find
entity María Dolores Pallero Espadero
relation country of citizenship
type designation for an administrative territorial entity
['María Dolores Pallero Espadero', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:María_Dolores_Pallero_Espadero property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1886954
Q15617994
USER
And also tell me about Malcolm Alexander MacLean?
(Q1886954,P27,c(Q15617994))
action filter_type
action find
entity Q1886954
relation P27
type Q15617994
['Q1886954', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q15617994 . resource:Q1886954 property:P27 ?j }
Malcolm Alexander MacLean
action filter_type
action find
entity Malcolm Alexander MacLean
relation country of citizenship
type designation for an administrative territorial entity
['Malcolm Alexander MacLean', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Malcolm_Alexander_MacLean property:country_of_citizenship ?j }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q1886954,P27,c(Q15617994))
action filter_type
action find
entity Q1886954
relation P27
type Q15617994
[ANSWER]
['Q1886954', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q15617994 . resource:Q1886954 property:P27 ?j }
United Kingdom
United Kingdom
action filter_type
action find
entity Malcolm Alexander MacLean
relation country of citizenship
type designation for an administrative territorial entity
['Malcolm Alexander MacLean', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Malcolm_Alexander_MacLean property:country_of_citizenship ?j }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2000103 Q1886954
P39
Q12737077
USER
Which occupations were the positions for which Malcolm Alexander MacLean or Norris Cotton were appointed ?
OR((Q1886954,P39,c(Q12737077)), (Q2000103,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q1886954
relation P39
action find
entity Q2000103
relation P39
type Q12737077
{'OR': [['Q1886954', 'P39', {'concept': 'Q12737077'}], ['Q2000103', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q1886954 property:P39 ?x } UNION { resource:Q2000103 property:P39 ?x } } . ?x rdf:type ontology:Q12737077 }
Norris Cotton Malcolm Alexander MacLean
action filter_type
action union
action find
entity Malcolm Alexander MacLean
relation position held
action find
entity Norris Cotton
relation position held
type occupation
{'OR': [['Malcolm Alexander MacLean', 'position held', {'concept': 'occupation'}], ['Norris Cotton', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Malcolm_Alexander_MacLean property:position_held ?x } UNION { resource:Norris_Cotton property:position_held ?x } } . ?x rdf:type ontology:occupation }
[]
occupation
Q13218630 Q24255207 Q13217683
SYSTEM
United States representative, Mayor of Vancouver, United States Senator
Q13218630 Q24255207 Q13217683
OR((Q1886954,P39,c(Q12737077)), (Q2000103,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q1886954
relation P39
action find
entity Q2000103
relation P39
type Q12737077
[ANSWERS] were the positions for which Malcolm Alexander MacLean or Norris Cotton were appointed
{'OR': [['Q1886954', 'P39', {'concept': 'Q12737077'}], ['Q2000103', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q1886954 property:P39 ?x } UNION { resource:Q2000103 property:P39 ?x } } . ?x rdf:type ontology:Q12737077 }
United States representative Mayor of Vancouver United States Senator
United States representative, Mayor of Vancouver and United States Senator were the positions for which Malcolm Alexander MacLean or Norris Cotton were appointed
United States representative Mayor of Vancouver United States Senator
action filter_type
action union
action find
entity Malcolm Alexander MacLean
relation position held
action find
entity Norris Cotton
relation position held
type occupation
{'OR': [['Malcolm Alexander MacLean', 'position held', {'concept': 'occupation'}], ['Norris Cotton', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Malcolm_Alexander_MacLean property:position_held ?x } UNION { resource:Norris_Cotton property:position_held ?x } } . ?x rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q24255207
P1001
Q56061
USER
Which administrative territory comes under the jurisdiction of that occupation ?
(Q24255207,P1001,c(Q56061))
action filter_type
action find
entity Q24255207
relation P1001
type Q56061
['Q24255207', 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q24255207 property:P1001 ?o . ?o rdf:type ontology:Q56061 }
Mayor of Vancouver
action filter_type
action find
entity Mayor of Vancouver
relation applies to jurisdiction
type administrative territorial entity
['Mayor of Vancouver', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Mayor_of_Vancouver property:applies_to_jurisdiction ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q13217683
SYSTEM
Did you mean United States Senator ?
Q13218630 Q24255207 Q13217683
(Q13218630,P1001,c(Q56061)) (Q24255207,P1001,c(Q56061)) (Q13217683,P1001,c(Q56061))
[ANSWER]
['Q13218630', 'P1001', {'concept': 'Q56061'}] ['Q24255207', 'P1001', {'concept': 'Q56061'}] ['Q13217683', 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q24255207 property:P1001 ?o . ?o rdf:type ontology:Q56061 }
United States representative Mayor of Vancouver United States Senator
Did you mean United States Senator ?
United States Senator
['United States representative', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}] ['Mayor of Vancouver', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}] ['United States Senator', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Mayor_of_Vancouver property:applies_to_jurisdiction ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Mayor of Vancouver. Could you tell me the answer for that?
(Q24255207,P1001,c(Q56061))
Q24255207
['Q24255207', 'P1001', {'concept': 'Q56061'}]
['Mayor of Vancouver', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
[]
Q24639
SYSTEM
Vancouver
Q24639
(Q24255207,P1001,c(Q56061))
action filter_type
action find
entity Q24255207
relation P1001
type Q56061
[ANSWER] comes under the jurisdiction of that occupation
['Q24255207', 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q24255207 property:P1001 ?o . ?o rdf:type ontology:Q56061 }
Vancouver
Vancouver comes under the jurisdiction of that occupation
Vancouver
action filter_type
action find
entity Mayor of Vancouver
relation applies to jurisdiction
type administrative territorial entity
['Mayor of Vancouver', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Mayor_of_Vancouver property:applies_to_jurisdiction ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q24639 Q4323729
P17
Q1048835
USER
Does that administrative territory belong to Nove ?
(Q24639,P17,Q4323729)
action is_in
entity Q4323729
action find
entity Q24639
relation P17
['Q24639', 'P17', 'Q4323729']
ASK WHERE { resource:Q24639 property:P17 resource:Q4323729 }
Vancouver Nove
action is_in
entity Nove
action find
entity Vancouver
relation country
['Vancouver', 'country', 'Nove']
ASK WHERE { resource:Vancouver property:country resource:Nove }
[]
political territorial entity
SYSTEM
NO
(Q24639,P17,Q4323729)
action is_in
entity Q4323729
action find
entity Q24639
relation P17
[ANSWER]
['Q24639', 'P17', 'Q4323729']
ASK WHERE { resource:Q24639 property:P17 resource:Q4323729 }
No
action is_in
entity Nove
action find
entity Vancouver
relation country
['Vancouver', 'country', 'Nove']
ASK WHERE { resource:Vancouver property:country resource:Nove }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q145 Q256547
P47
Q15617994
USER
Is Schwangau bordered by United Kingdom ?
(Q145,P47,Q256547)
action is_in
entity Q256547
action find
entity Q145
relation P47
['Q145', 'P47', 'Q256547']
ASK WHERE { resource:Q145 property:P47 resource:Q256547 }
United Kingdom Schwangau
action is_in
entity Schwangau
action find
entity United Kingdom
relation shares border with
['United Kingdom', 'shares border with', 'Schwangau']
ASK WHERE { resource:United_Kingdom property:shares_border_with resource:Schwangau }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q145,P47,Q256547)
action is_in
entity Q256547
action find
entity Q145
relation P47
[ANSWER]
['Q145', 'P47', 'Q256547']
ASK WHERE { resource:Q145 property:P47 resource:Q256547 }
No
action is_in
entity Schwangau
action find
entity United Kingdom
relation shares border with
['United Kingdom', 'shares border with', 'Schwangau']
ASK WHERE { resource:United_Kingdom property:shares_border_with resource:Schwangau }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q138198 Q17629
P17
Q15617994
USER
Is Spanish Socialist Workers' Party a part of Ovada ?
(Q138198,P17,Q17629)
action is_in
entity Q17629
action find
entity Q138198
relation P17
['Q138198', 'P17', 'Q17629']
ASK WHERE { resource:Q138198 property:P17 resource:Q17629 }
Spanish Socialist Workers' Party Ovada
action is_in
entity Ovada
action find
entity Spanish Socialist Workers' Party
relation country
["Spanish Socialist Workers' Party", 'country', 'Ovada']
ASK WHERE { resource:Spanish_Socialist_Workers'_Party property:country resource:Ovada }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q138198,P17,Q17629)
action is_in
entity Q17629
action find
entity Q138198
relation P17
[ANSWER]
['Q138198', 'P17', 'Q17629']
ASK WHERE { resource:Q138198 property:P17 resource:Q17629 }
No
action is_in
entity Ovada
action find
entity Spanish Socialist Workers' Party
relation country
["Spanish Socialist Workers' Party", 'country', 'Ovada']
ASK WHERE { resource:Spanish_Socialist_Workers'_Party property:country resource:Ovada }
[]