Simple Question (Direct)
Simple Question
Q7324550
P21
Q290
USER
Which sex does Richard C. Johnston have ?
(Q7324550,P21,c(Q290))
action filter_type
action find
entity Q7324550
relation P21
type Q290
['Q7324550', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q7324550 property:P21 ?u . ?u rdf:type ontology:Q290 }
Richard C. Johnston
action filter_type
action find
entity Richard C. Johnston
relation gender
type sex
['Richard C. Johnston', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Richard_C._Johnston property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7324550,P21,c(Q290))
action filter_type
action find
entity Q7324550
relation P21
type Q290
Richard C. Johnston has 1 [ANSWER]
['Q7324550', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q7324550 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
Richard C. Johnston has 1 male
male
action filter_type
action find
entity Richard C. Johnston
relation gender
type sex
['Richard C. Johnston', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Richard_C._Johnston property:gender ?u . ?u rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7324550
P69
Q3914
USER
Where was Richard C. Johnston educated ?
(Q7324550,P69,c(Q3914))
action filter_type
action find
entity Q7324550
relation P69
type Q3914
['Q7324550', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q3914 . resource:Q7324550 property:P69 ?h }
Richard C. Johnston
action filter_type
action find
entity Richard C. Johnston
relation educated at
type school
['Richard C. Johnston', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:school . resource:Richard_C._Johnston property:educated_at ?h }
[]
school
Q49127
SYSTEM
Harvard Kennedy School
Q49127
(Q7324550,P69,c(Q3914))
action filter_type
action find
entity Q7324550
relation P69
type Q3914
Richard C. Johnston was educated at [ANSWER]
['Q7324550', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q3914 . resource:Q7324550 property:P69 ?h }
Harvard Kennedy School
Richard C. Johnston was educated at Harvard Kennedy School
Harvard Kennedy School
action filter_type
action find
entity Richard C. Johnston
relation educated at
type school
['Richard C. Johnston', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:school . resource:Richard_C._Johnston property:educated_at ?h }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4864074
Q3914
USER
And how about Barry Campbell?
(Q4864074,P69,c(Q3914))
action filter_type
action find
entity Q4864074
relation P69
type Q3914
['Q4864074', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?w WHERE { resource:Q4864074 property:P69 ?w . ?w rdf:type ontology:Q3914 }
Barry Campbell
action filter_type
action find
entity Barry Campbell
relation educated at
type school
['Barry Campbell', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?w WHERE { resource:Barry_Campbell property:educated_at ?w . ?w rdf:type ontology:school }
[]
school
Q49122
SYSTEM
Harvard Law School
Q49122
(Q4864074,P69,c(Q3914))
action filter_type
action find
entity Q4864074
relation P69
type Q3914
[ANSWER]
['Q4864074', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?w WHERE { resource:Q4864074 property:P69 ?w . ?w rdf:type ontology:Q3914 }
Harvard Law School
Harvard Law School
action filter_type
action find
entity Barry Campbell
relation educated at
type school
['Barry Campbell', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?w WHERE { resource:Barry_Campbell property:educated_at ?w . ?w rdf:type ontology:school }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q49122 Q7996653 Q669253
P17
Q15617994
USER
Is that school located in Whitnall School District and Wackerow ?
(Q49122,P17,Q7996653) (Q49122,P17,Q669253)
action is_in
entity Q49122
action intersection
action find_reverse
entity Q7996653
relation P17
action find_reverse
entity Q669253
relation P17
['Q49122', 'P17', 'Q7996653'] ['Q49122', 'P17', 'Q669253']
ASK WHERE { resource:Q49122 property:P17 resource:Q7996653 . resource:Q49122 property:P17 resource:Q669253 }
Harvard Law School Whitnall School District Wackerow
action is_in
entity Harvard Law School
action intersection
action find_reverse
entity Whitnall School District
relation country
action find_reverse
entity Wackerow
relation country
['Harvard Law School', 'country', 'Whitnall School District'] ['Harvard Law School', 'country', 'Wackerow']
ASK WHERE { resource:Harvard_Law_School property:country resource:Whitnall_School_District . resource:Harvard_Law_School property:country resource:Wackerow }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q49122,P17,Q7996653) (Q49122,P17,Q669253)
action is_in
entity Q49122
action intersection
action find_reverse
entity Q7996653
relation P17
action find_reverse
entity Q669253
relation P17
[ANSWER]
['Q49122', 'P17', 'Q7996653'] ['Q49122', 'P17', 'Q669253']
ASK WHERE { resource:Q49122 property:P17 resource:Q7996653 . resource:Q49122 property:P17 resource:Q669253 }
No
action is_in
entity Harvard Law School
action intersection
action find_reverse
entity Whitnall School District
relation country
action find_reverse
entity Wackerow
relation country
['Harvard Law School', 'country', 'Whitnall School District'] ['Harvard Law School', 'country', 'Wackerow']
ASK WHERE { resource:Harvard_Law_School property:country resource:Whitnall_School_District . resource:Harvard_Law_School property:country resource:Wackerow }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10725811 Q49122
P17
Q15617994
USER
Which administrative territories do Harvard Law School or Ämmänsaari belong to ?
OR((Q49122,P17,c(Q15617994)), (Q10725811,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q49122
relation P17
action find
entity Q10725811
relation P17
type Q15617994
{'OR': [['Q49122', 'P17', {'concept': 'Q15617994'}], ['Q10725811', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q49122 property:P17 ?r } UNION { resource:Q10725811 property:P17 ?r } } . ?r rdf:type ontology:Q15617994 }
Ämmänsaari Harvard Law School
action filter_type
action union
action find
entity Harvard Law School
relation country
action find
entity Ämmänsaari
relation country
type designation for an administrative territorial entity
{'OR': [['Harvard Law School', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ämmänsaari', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Harvard_Law_School property:country ?r } UNION { resource:Ämmänsaari property:country ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q30
SYSTEM
Finland, United States of America
Q33 Q30
OR((Q49122,P17,c(Q15617994)), (Q10725811,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q49122
relation P17
action find
entity Q10725811
relation P17
type Q15617994
Harvard Law School or Ämmänsaari belong to [ANSWERS]
{'OR': [['Q49122', 'P17', {'concept': 'Q15617994'}], ['Q10725811', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q49122 property:P17 ?r } UNION { resource:Q10725811 property:P17 ?r } } . ?r rdf:type ontology:Q15617994 }
Finland United States of America
Harvard Law School or Ämmänsaari belong to Finland and United States of America
Finland United States of America
action filter_type
action union
action find
entity Harvard Law School
relation country
action find
entity Ämmänsaari
relation country
type designation for an administrative territorial entity
{'OR': [['Harvard Law School', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ämmänsaari', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Harvard_Law_School property:country ?r } UNION { resource:Ämmänsaari property:country ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1601807 Q669253
P47 P17
Q1048835
USER
Which political territories are Wackerow located in or are bordered by Navarredonda de Gredos ?
OR((Q669253,P17,c(Q1048835)), (Q1601807,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q669253
relation P17
action find
entity Q1601807
relation P47
type Q1048835
{'OR': [['Q669253', 'P17', {'concept': 'Q1048835'}], ['Q1601807', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1601807 property:P47 ?f } UNION { resource:Q669253 property:P17 ?f } } . ?f rdf:type ontology:Q1048835 }
Navarredonda de Gredos Wackerow
action filter_type
action union
action find
entity Wackerow
relation country
action find
entity Navarredonda de Gredos
relation shares border with
type political territorial entity
{'OR': [['Wackerow', 'country', {'concept': 'political territorial entity'}], ['Navarredonda de Gredos', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Navarredonda_de_Gredos property:shares_border_with ?f } UNION { resource:Wackerow property:country ?f } } . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q634713 Q183 Q1630378 Q1632614 Q1632606 Q1606896 Q1632480 Q1630563
SYSTEM
Hoyos de Miguel Muñoz, Germany, San Martín del Pimpollar, El Arenal, El Hornillo, Navadijos, Hoyos del Espino, San Martín de la Vega del Alberche
Q634713 Q183 Q1630378 Q1632614 Q1632606 Q1606896 Q1632480 Q1630563
OR((Q669253,P17,c(Q1048835)), (Q1601807,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q669253
relation P17
action find
entity Q1601807
relation P47
type Q1048835
Wackerow are located bordered by [ANSWERS]
{'OR': [['Q669253', 'P17', {'concept': 'Q1048835'}], ['Q1601807', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1601807 property:P47 ?f } UNION { resource:Q669253 property:P17 ?f } } . ?f rdf:type ontology:Q1048835 }
Hoyos de Miguel Muñoz Germany San Martín del Pimpollar El Arenal El Hornillo Navadijos Hoyos del Espino San Martín de la Vega del Alberche
Wackerow are located bordered by Hoyos de Miguel Muñoz, Germany, San Martín del Pimpollar, El Arenal, El Hornillo, Navadijos, Hoyos del Espino and San Martín de la Vega del Alberche
Hoyos de Miguel Muñoz Germany San Martín del Pimpollar El Arenal El Hornillo Navadijos Hoyos del Espino San Martín de la Vega del Alberche
action filter_type
action union
action find
entity Wackerow
relation country
action find
entity Navarredonda de Gredos
relation shares border with
type political territorial entity
{'OR': [['Wackerow', 'country', {'concept': 'political territorial entity'}], ['Navarredonda de Gredos', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Navarredonda_de_Gredos property:shares_border_with ?f } UNION { resource:Wackerow property:country ?f } } . ?f rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3133697 Q1630563
P17
Q15617994
USER
Which administrative territories are San Martín de la Vega del Alberche or Matejče located in ?
OR((Q1630563,P17,c(Q15617994)), (Q3133697,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1630563
relation P17
action find
entity Q3133697
relation P17
type Q15617994
{'OR': [['Q1630563', 'P17', {'concept': 'Q15617994'}], ['Q3133697', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . { { resource:Q1630563 property:P17 ?i } UNION { resource:Q3133697 property:P17 ?i } } }
Matejče San Martín de la Vega del Alberche
action filter_type
action union
action find
entity San Martín de la Vega del Alberche
relation country
action find
entity Matejče
relation country
type designation for an administrative territorial entity
{'OR': [['San Martín de la Vega del Alberche', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Matejče', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:San_Martín_de_la_Vega_del_Alberche property:country ?i } UNION { resource:Matejče property:country ?i } } }
[]
designation for an administrative territorial entity
Q29 Q221
SYSTEM
Spain, Republic of Macedonia
Q29 Q221
OR((Q1630563,P17,c(Q15617994)), (Q3133697,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1630563
relation P17
action find
entity Q3133697
relation P17
type Q15617994
[ANSWERS] are San Martín de la Vega del Alberche or Matejče located in
{'OR': [['Q1630563', 'P17', {'concept': 'Q15617994'}], ['Q3133697', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . { { resource:Q1630563 property:P17 ?i } UNION { resource:Q3133697 property:P17 ?i } } }
Spain Republic of Macedonia
Spain and Republic of Macedonia are San Martín de la Vega del Alberche or Matejče located in
Spain Republic of Macedonia
action filter_type
action union
action find
entity San Martín de la Vega del Alberche
relation country
action find
entity Matejče
relation country
type designation for an administrative territorial entity
{'OR': [['San Martín de la Vega del Alberche', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Matejče', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:San_Martín_de_la_Vega_del_Alberche property:country ?i } UNION { resource:Matejče property:country ?i } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1760645
P530
Q1048835
USER
Do Zacarias, São Paulo have ambassadorial relations with those administrative territories ?
(Q1760645,P530,Q29) (Q1760645,P530,Q221)
action is_in
entity prev_answer
action find
entity Q1760645
relation P530
['Q1760645', 'P530', 'Q29'] ['Q1760645', 'P530', 'Q221']
ASK WHERE { resource:Q1760645 property:P530 ?i . VALUES ( ?i ) { ( resource:Q29 ) ( resource:Q221 ) } }
Zacarias, São Paulo
action is_in
entity prev_answer
action find
entity Zacarias, São Paulo
relation diplomatic relation
['Zacarias, São Paulo', 'diplomatic relation', 'Spain'] ['Zacarias, São Paulo', 'diplomatic relation', 'Republic of Macedonia']
ASK WHERE { resource:Zacarias,_São_Paulo property:diplomatic_relation ?i . VALUES ( ?i ) { ( resource:Spain ) ( resource:Republic_of_Macedonia ) } }
[]
political territorial entity
SYSTEM
NO
(Q1760645,P530,Q29) (Q1760645,P530,Q221)
action is_in
entity prev_answer
action find
entity Q1760645
relation P530
[ANSWER]
['Q1760645', 'P530', 'Q29'] ['Q1760645', 'P530', 'Q221']
ASK WHERE { resource:Q1760645 property:P530 ?i . VALUES ( ?i ) { ( resource:Q29 ) ( resource:Q221 ) } }
No
action is_in
entity prev_answer
action find
entity Zacarias, São Paulo
relation diplomatic relation
['Zacarias, São Paulo', 'diplomatic relation', 'Spain'] ['Zacarias, São Paulo', 'diplomatic relation', 'Republic of Macedonia']
ASK WHERE { resource:Zacarias,_São_Paulo property:diplomatic_relation ?i . VALUES ( ?i ) { ( resource:Spain ) ( resource:Republic_of_Macedonia ) } }
[]