Simple Question (Direct)
Simple Question
Q11905915
P1412
Q34770
USER
Which language is Antoni Palau de Mesa capable of writing ?
(Q11905915,P1412,c(Q34770))
action filter_type
action find
entity Q11905915
relation P1412
type Q34770
['Q11905915', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q11905915 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Antoni Palau de Mesa
action filter_type
action find
entity Antoni Palau de Mesa
relation languages spoken, written or signed
type language
['Antoni Palau de Mesa', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Antoni_Palau_de_Mesa property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q11905915,P1412,c(Q34770))
action filter_type
action find
entity Q11905915
relation P1412
type Q34770
[ANSWER] is Antoni Palau de Mesa capable of writing
['Q11905915', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q11905915 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Spanish
Spanish is Antoni Palau de Mesa capable of writing
Spanish
action filter_type
action find
entity Antoni Palau de Mesa
relation languages spoken, written or signed
type language
['Antoni Palau de Mesa', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Antoni_Palau_de_Mesa property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11905915
P937
Q56061
USER
Where did Antoni Palau de Mesa work ?
(Q11905915,P937,c(Q56061))
action filter_type
action find
entity Q11905915
relation P937
type Q56061
['Q11905915', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q11905915 property:P937 ?w . ?w rdf:type ontology:Q56061 }
Antoni Palau de Mesa
action filter_type
action find
entity Antoni Palau de Mesa
relation work location
type administrative territorial entity
['Antoni Palau de Mesa', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Antoni_Palau_de_Mesa property:work_location ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807
SYSTEM
Madrid
Q2807
(Q11905915,P937,c(Q56061))
action filter_type
action find
entity Q11905915
relation P937
type Q56061
Antoni Palau de Mesa worked in [ANSWER]
['Q11905915', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q11905915 property:P937 ?w . ?w rdf:type ontology:Q56061 }
Madrid
Antoni Palau de Mesa worked in Madrid
Madrid
action filter_type
action find
entity Antoni Palau de Mesa
relation work location
type administrative territorial entity
['Antoni Palau de Mesa', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Antoni_Palau_de_Mesa property:work_location ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2807 Q487679
P47
Q56061
USER
Does Alcobendas share the border with Madrid ?
(Q2807,P47,Q487679)
action is_in
entity Q487679
action find
entity Q2807
relation P47
['Q2807', 'P47', 'Q487679']
ASK WHERE { resource:Q2807 property:P47 resource:Q487679 }
Madrid Alcobendas
action is_in
entity Alcobendas
action find
entity Madrid
relation shares border with
['Madrid', 'shares border with', 'Alcobendas']
ASK WHERE { resource:Madrid property:shares_border_with resource:Alcobendas }
[]
administrative territorial entity
SYSTEM
YES
(Q2807,P47,Q487679)
action is_in
entity Q487679
action find
entity Q2807
relation P47
[ANSWER]
['Q2807', 'P47', 'Q487679']
ASK WHERE { resource:Q2807 property:P47 resource:Q487679 }
Yes
action is_in
entity Alcobendas
action find
entity Madrid
relation shares border with
['Madrid', 'shares border with', 'Alcobendas']
ASK WHERE { resource:Madrid property:shares_border_with resource:Alcobendas }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1352774 Q11905915
P102
Q7210356
USER
Which political organizations are Antoni Palau de Mesa or Erich Lutter affiliated with ?
OR((Q11905915,P102,c(Q7210356)), (Q1352774,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q11905915
relation P102
action find
entity Q1352774
relation P102
type Q7210356
{'OR': [['Q11905915', 'P102', {'concept': 'Q7210356'}], ['Q1352774', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?q ) { ( resource:Q11905915 ) ( resource:Q1352774 ) } . ?q property:P102 ?t } . ?t rdf:type ontology:Q7210356 }
Erich Lutter Antoni Palau de Mesa
action filter_type
action union
action find
entity Antoni Palau de Mesa
relation member of political party
action find
entity Erich Lutter
relation member of political party
type political organization
{'OR': [['Antoni Palau de Mesa', 'member of political party', {'concept': 'political organization'}], ['Erich Lutter', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?q ) { ( resource:Antoni_Palau_de_Mesa ) ( resource:Erich_Lutter ) } . ?q property:member_of_political_party ?t } . ?t rdf:type ontology:political_organization }
[]
political organization
Q7320 Q3178479
SYSTEM
Nazi Party, Liberal Party
Q7320 Q3178479
OR((Q11905915,P102,c(Q7210356)), (Q1352774,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q11905915
relation P102
action find
entity Q1352774
relation P102
type Q7210356
Antoni Palau de Mesa or Erich Lutter are affiliated with [ANSWERS]
{'OR': [['Q11905915', 'P102', {'concept': 'Q7210356'}], ['Q1352774', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?q ) { ( resource:Q11905915 ) ( resource:Q1352774 ) } . ?q property:P102 ?t } . ?t rdf:type ontology:Q7210356 }
Nazi Party Liberal Party
Antoni Palau de Mesa or Erich Lutter are affiliated with Nazi Party and Liberal Party
Nazi Party Liberal Party
action filter_type
action union
action find
entity Antoni Palau de Mesa
relation member of political party
action find
entity Erich Lutter
relation member of political party
type political organization
{'OR': [['Antoni Palau de Mesa', 'member of political party', {'concept': 'political organization'}], ['Erich Lutter', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?q ) { ( resource:Antoni_Palau_de_Mesa ) ( resource:Erich_Lutter ) } . ?q property:member_of_political_party ?t } . ?t rdf:type ontology:political_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1352774
P102
Q7210356
USER
How many political organizations are Erich Lutter affiliated with ?
(Q1352774,P102,c(Q7210356))
action count
action filter_type
action find
entity Q1352774
relation P102
type Q7210356
['Q1352774', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { resource:Q1352774 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Erich Lutter
action count
action filter_type
action find
entity Erich Lutter
relation member of political party
type political organization
['Erich Lutter', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { resource:Erich_Lutter property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
SYSTEM
1
Q7320
(Q1352774,P102,c(Q7210356))
action count
action filter_type
action find
entity Q1352774
relation P102
type Q7210356
[ANSWER]
['Q1352774', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { resource:Q1352774 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Nazi Party
1
action count
action filter_type
action find
entity Erich Lutter
relation member of political party
type political organization
['Erich Lutter', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { resource:Erich_Lutter property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1352774
P21
Q290
USER
Which sex does that person have ?
action filter_type
action find
entity Q1352774
relation P21
type Q290
SELECT DISTINCT ?l WHERE { resource:Q1352774 property:P21 ?l . ?l rdf:type ontology:Q290 }
Erich Lutter
action filter_type
action find
entity Erich Lutter
relation gender
type sex
SELECT DISTINCT ?l WHERE { resource:Erich_Lutter property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
action filter_type
action find
entity Q1352774
relation P21
type Q290
That person has a [ANSWER]
SELECT DISTINCT ?l WHERE { resource:Q1352774 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Erich Lutter
relation gender
type sex
SELECT DISTINCT ?l WHERE { resource:Erich_Lutter property:gender ?l . ?l rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5214400 Q487679
P47 P19
Q56061
USER
Which administrative territories have a shared border with Alcobendas or were Dan Smith born in ?
OR((Q487679,P47,c(Q56061)), (Q5214400,P19,c(Q56061)))
action filter_type
action union
action find
entity Q487679
relation P47
action find
entity Q5214400
relation P19
type Q56061
{'OR': [['Q487679', 'P47', {'concept': 'Q56061'}], ['Q5214400', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q487679 property:P47 ?u } UNION { resource:Q5214400 property:P19 ?u } } . ?u rdf:type ontology:Q56061 }
Dan Smith Alcobendas
action filter_type
action union
action find
entity Alcobendas
relation shares border with
action find
entity Dan Smith
relation place of birth
type administrative territorial entity
{'OR': [['Alcobendas', 'shares border with', {'concept': 'administrative territorial entity'}], ['Dan Smith', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Alcobendas property:shares_border_with ?u } UNION { resource:Dan_Smith property:place_of_birth ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807 Q188304
SYSTEM
Madrid, Sunderland
Q2807 Q188304
OR((Q487679,P47,c(Q56061)), (Q5214400,P19,c(Q56061)))
action filter_type
action union
action find
entity Q487679
relation P47
action find
entity Q5214400
relation P19
type Q56061
[ANSWERS] have a shared border with Alcobendas or were Dan Smith born in
{'OR': [['Q487679', 'P47', {'concept': 'Q56061'}], ['Q5214400', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q487679 property:P47 ?u } UNION { resource:Q5214400 property:P19 ?u } } . ?u rdf:type ontology:Q56061 }
Madrid Sunderland
Madrid and Sunderland have a shared border with Alcobendas or were Dan Smith born in
Madrid Sunderland
action filter_type
action union
action find
entity Alcobendas
relation shares border with
action find
entity Dan Smith
relation place of birth
type administrative territorial entity
{'OR': [['Alcobendas', 'shares border with', {'concept': 'administrative territorial entity'}], ['Dan Smith', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Alcobendas property:shares_border_with ?u } UNION { resource:Dan_Smith property:place_of_birth ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q188304
P17
Q15617994
USER
Which administrative territory is that administrative territory a part of ?
(Q188304,P17,c(Q15617994))
action filter_type
action find
entity Q188304
relation P17
type Q15617994
['Q188304', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q188304 property:P17 ?l }
Sunderland
action filter_type
action find
entity Sunderland
relation country
type designation for an administrative territorial entity
['Sunderland', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Sunderland property:country ?l }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q2807
SYSTEM
Did you mean Madrid ?
Q2807 Q188304
(Q2807,P17,c(Q15617994)) (Q188304,P17,c(Q15617994))
[ANSWER]
['Q2807', 'P17', {'concept': 'Q15617994'}] ['Q188304', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q188304 property:P17 ?l }
Madrid Sunderland
Did you mean Madrid ?
Madrid
['Madrid', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Sunderland', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Sunderland property:country ?l }
[]
Simple Question (Coreferenced)
USER
No, I meant Sunderland. Could you tell me the answer for that?
(Q188304,P17,c(Q15617994))
Q188304
['Q188304', 'P17', {'concept': 'Q15617994'}]
['Sunderland', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q145
SYSTEM
United Kingdom
Q145
(Q188304,P17,c(Q15617994))
action filter_type
action find
entity Q188304
relation P17
type Q15617994
[ANSWER] is that administrative territory a part of
['Q188304', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q188304 property:P17 ?l }
United Kingdom
United Kingdom is that administrative territory a part of
United Kingdom
action filter_type
action find
entity Sunderland
relation country
type designation for an administrative territorial entity
['Sunderland', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Sunderland property:country ?l }
[]