Simple Question (Direct)
Simple Question
Q8962306
P1412
Q34770
USER
Which language does Francisco Bernabé Madero speak in ?
(Q8962306,P1412,c(Q34770))
action filter_type
action find
entity Q8962306
relation P1412
type Q34770
['Q8962306', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q8962306 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
Francisco Bernabé Madero
action filter_type
action find
entity Francisco Bernabé Madero
relation languages spoken, written or signed
type language
['Francisco Bernabé Madero', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Francisco_Bernabé_Madero property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q8962306,P1412,c(Q34770))
action filter_type
action find
entity Q8962306
relation P1412
type Q34770
Francisco Bernabé Madero speaks in [ANSWER]
['Q8962306', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q8962306 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
Spanish
Francisco Bernabé Madero speaks in Spanish
Spanish
action filter_type
action find
entity Francisco Bernabé Madero
relation languages spoken, written or signed
type language
['Francisco Bernabé Madero', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Francisco_Bernabé_Madero property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8962306
P21
Q290
USER
Which sex does Francisco Bernabé Madero belong to ?
(Q8962306,P21,c(Q290))
action filter_type
action find
entity Q8962306
relation P21
type Q290
['Q8962306', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q290 . resource:Q8962306 property:P21 ?t }
Francisco Bernabé Madero
action filter_type
action find
entity Francisco Bernabé Madero
relation gender
type sex
['Francisco Bernabé Madero', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sex . resource:Francisco_Bernabé_Madero property:gender ?t }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q8962306,P21,c(Q290))
action filter_type
action find
entity Q8962306
relation P21
type Q290
Francisco Bernabé Madero belongs to [ANSWER]
['Q8962306', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q290 . resource:Q8962306 property:P21 ?t }
male
Francisco Bernabé Madero belongs to male
male
action filter_type
action find
entity Francisco Bernabé Madero
relation gender
type sex
['Francisco Bernabé Madero', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sex . resource:Francisco_Bernabé_Madero property:gender ?t }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8962306
P102
Q7210356
USER
Which party does Francisco Bernabé Madero belong to ?
(Q8962306,P102,c(Q7210356))
action filter_type
action find
entity Q8962306
relation P102
type Q7210356
['Q8962306', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q8962306 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Francisco Bernabé Madero
action filter_type
action find
entity Francisco Bernabé Madero
relation member of political party
type political organization
['Francisco Bernabé Madero', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Francisco_Bernabé_Madero property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
political organization
Q832930
SYSTEM
National Autonomist Party
Q832930
(Q8962306,P102,c(Q7210356))
action filter_type
action find
entity Q8962306
relation P102
type Q7210356
Francisco Bernabé Madero belongs to [ANSWER]
['Q8962306', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q8962306 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
National Autonomist Party
Francisco Bernabé Madero belongs to National Autonomist Party
National Autonomist Party
action filter_type
action find
entity Francisco Bernabé Madero
relation member of political party
type political organization
['Francisco Bernabé Madero', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Francisco_Bernabé_Madero property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q832930 Q1013838 Q1486
P159
Q515
USER
Does National Autonomist Party have HQ at Chyše and Buenos Aires ?
(Q832930,P159,Q1013838) (Q832930,P159,Q1486)
action is_in
entity Q832930
action intersection
action find_reverse
entity Q1013838
relation P159
action find_reverse
entity Q1486
relation P159
['Q832930', 'P159', 'Q1013838'] ['Q832930', 'P159', 'Q1486']
ASK WHERE { resource:Q832930 property:P159 resource:Q1013838 . resource:Q832930 property:P159 resource:Q1486 }
National Autonomist Party Chyše Buenos Aires
action is_in
entity National Autonomist Party
action intersection
action find_reverse
entity Chyše
relation headquarters location
action find_reverse
entity Buenos Aires
relation headquarters location
['National Autonomist Party', 'headquarters location', 'Chyše'] ['National Autonomist Party', 'headquarters location', 'Buenos Aires']
ASK WHERE { resource:National_Autonomist_Party property:headquarters_location resource:Chyše . resource:National_Autonomist_Party property:headquarters_location resource:Buenos_Aires }
[]
city
SYSTEM
NO and YES respectively
(Q832930,P159,Q1013838) (Q832930,P159,Q1486)
action is_in
entity Q832930
action intersection
action find_reverse
entity Q1013838
relation P159
action find_reverse
entity Q1486
relation P159
[ANSWER]
['Q832930', 'P159', 'Q1013838'] ['Q832930', 'P159', 'Q1486']
ASK WHERE { resource:Q832930 property:P159 resource:Q1013838 . resource:Q832930 property:P159 resource:Q1486 }
NO and YES respectively
action is_in
entity National Autonomist Party
action intersection
action find_reverse
entity Chyše
relation headquarters location
action find_reverse
entity Buenos Aires
relation headquarters location
['National Autonomist Party', 'headquarters location', 'Chyše'] ['National Autonomist Party', 'headquarters location', 'Buenos Aires']
ASK WHERE { resource:National_Autonomist_Party property:headquarters_location resource:Chyše . resource:National_Autonomist_Party property:headquarters_location resource:Buenos_Aires }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q272476 Q8962306
P19
Q515
USER
Which cities are the places of birth of Francisco Bernabé Madero or Countess Palatine Elisabeth Auguste of Sulzbach ?
OR((Q8962306,P19,c(Q515)), (Q272476,P19,c(Q515)))
action filter_type
action union
action find
entity Q8962306
relation P19
action find
entity Q272476
relation P19
type Q515
{'OR': [['Q8962306', 'P19', {'concept': 'Q515'}], ['Q272476', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q8962306 property:P19 ?n } UNION { resource:Q272476 property:P19 ?n } } . ?n rdf:type ontology:Q515 }
Countess Palatine Elisabeth Auguste of Sulzbach Francisco Bernabé Madero
action filter_type
action union
action find
entity Francisco Bernabé Madero
relation place of birth
action find
entity Countess Palatine Elisabeth Auguste of Sulzbach
relation place of birth
type city
{'OR': [['Francisco Bernabé Madero', 'place of birth', {'concept': 'city'}], ['Countess Palatine Elisabeth Auguste of Sulzbach', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Francisco_Bernabé_Madero property:place_of_birth ?n } UNION { resource:Countess_Palatine_Elisabeth_Auguste_of_Sulzbach property:place_of_birth ?n } } . ?n rdf:type ontology:city }
[]
city
Q1486 Q2119
SYSTEM
Buenos Aires, Mannheim
Q1486 Q2119
OR((Q8962306,P19,c(Q515)), (Q272476,P19,c(Q515)))
action filter_type
action union
action find
entity Q8962306
relation P19
action find
entity Q272476
relation P19
type Q515
[ANSWERS] are the places of birth of Francisco Bernabé Madero or Countess Palatine Elisabeth Auguste of Sulzbach
{'OR': [['Q8962306', 'P19', {'concept': 'Q515'}], ['Q272476', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q8962306 property:P19 ?n } UNION { resource:Q272476 property:P19 ?n } } . ?n rdf:type ontology:Q515 }
Buenos Aires Mannheim
Buenos Aires and Mannheim are the places of birth of Francisco Bernabé Madero or Countess Palatine Elisabeth Auguste of Sulzbach
Buenos Aires Mannheim
action filter_type
action union
action find
entity Francisco Bernabé Madero
relation place of birth
action find
entity Countess Palatine Elisabeth Auguste of Sulzbach
relation place of birth
type city
{'OR': [['Francisco Bernabé Madero', 'place of birth', {'concept': 'city'}], ['Countess Palatine Elisabeth Auguste of Sulzbach', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Francisco_Bernabé_Madero property:place_of_birth ?n } UNION { resource:Countess_Palatine_Elisabeth_Auguste_of_Sulzbach property:place_of_birth ?n } } . ?n rdf:type ontology:city }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P190
Q56061
USER
How many administrative territories are sister towns of that city ?
(Q2119,P190,c(Q56061))
['Q2119', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q6750819 property:P190 ?z . ?z rdf:type ontology:Q56061 }
['Mannheim', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Mannheim property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q1486
SYSTEM
Did you mean Buenos Aires ?
(Q1486,P190,c(Q56061)) (Q2119,P190,c(Q56061))
[ANSWER]
['Q1486', 'P190', {'concept': 'Q56061'}] ['Q2119', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q6750819 property:P190 ?z . ?z rdf:type ontology:Q56061 }
Did you mean Buenos Aires ?
Buenos Aires
['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity'}] ['Mannheim', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Mannheim property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Mannheim. Could you tell me the answer for that?
(Q2119,P190,c(Q56061))
Q2119
['Q2119', 'P190', {'concept': 'Q56061'}]
['Mannheim', 'sister city', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
4
Q41621 Q776965 Q23051 Q21197
(Q2119,P190,c(Q56061))
[ANSWER]
['Q2119', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q6750819 property:P190 ?z . ?z rdf:type ontology:Q56061 }
Haifa Klaipėda Swansea Chișinău
4
['Mannheim', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Mannheim property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]