Simple Question (Direct)
Simple Question
Q125791
P102
Q7210356
USER
Which political organization is Fadil Hoxha a member of ?
(Q125791,P102,c(Q7210356))
action filter_type
action find
entity Q125791
relation P102
type Q7210356
['Q125791', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q7210356 . resource:Q125791 property:P102 ?t }
Fadil Hoxha
action filter_type
action find
entity Fadil Hoxha
relation member of political party
type political organization
['Fadil Hoxha', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_organization . resource:Fadil_Hoxha property:member_of_political_party ?t }
[]
political organization
Q641691
SYSTEM
League of Communists of Yugoslavia
Q641691
(Q125791,P102,c(Q7210356))
action filter_type
action find
entity Q125791
relation P102
type Q7210356
[ANSWER] is Fadil Hoxha a member of
['Q125791', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q7210356 . resource:Q125791 property:P102 ?t }
League of Communists of Yugoslavia
League of Communists of Yugoslavia is Fadil Hoxha a member of
League of Communists of Yugoslavia
action filter_type
action find
entity Fadil Hoxha
relation member of political party
type political organization
['Fadil Hoxha', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_organization . resource:Fadil_Hoxha property:member_of_political_party ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q125791
P607
Q198
USER
Which battle did that person take part in ?
(Q641691,P607,c(Q198))
action filter_type
action find
entity Q125791
relation P607
type Q198
['Q641691', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?d WHERE { resource:Q125791 property:P607 ?d . ?d rdf:type ontology:Q198 }
Fadil Hoxha
action filter_type
action find
entity Fadil Hoxha
relation conflict
type war
['League of Communists of Yugoslavia', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?d WHERE { resource:Fadil_Hoxha property:conflict ?d . ?d rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q641691,P607,c(Q198))
action filter_type
action find
entity Q125791
relation P607
type Q198
That person took in part in [ANSWER]
['Q641691', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?d WHERE { resource:Q125791 property:P607 ?d . ?d rdf:type ontology:Q198 }
World War II
That person took in part in World War II
World War II
action filter_type
action find
entity Fadil Hoxha
relation conflict
type war
['League of Communists of Yugoslavia', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?d WHERE { resource:Fadil_Hoxha property:conflict ?d . ?d rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q125791
P20
Q56061
USER
Where did the demise of that person occur ?
(Q362,P20,c(Q56061))
action filter_type
action find
entity Q125791
relation P20
type Q56061
['Q362', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q125791 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Fadil Hoxha
action filter_type
action find
entity Fadil Hoxha
relation place of death
type administrative territorial entity
['World War II', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Fadil_Hoxha property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q25270
SYSTEM
Prishtina
Q25270
(Q362,P20,c(Q56061))
action filter_type
action find
entity Q125791
relation P20
type Q56061
The demise of that person occurred in [ANSWER]
['Q362', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q125791 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Prishtina
The demise of that person occurred in Prishtina
Prishtina
action filter_type
action find
entity Fadil Hoxha
relation place of death
type administrative territorial entity
['World War II', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Fadil_Hoxha property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q25270
P36
Q5589178
USER
Which regimes consists of that administrative territory as their capital ?
(c(Q5589178),P36,Q25270)
action filter_type
action find_reverse
entity Q25270
relation P36
type Q5589178
[{'concept': 'Q5589178'}, 'P36', 'Q25270']
SELECT DISTINCT ?z WHERE { ?z property:P36 resource:Q25270 . ?z rdf:type ontology:Q5589178 }
Prishtina
action filter_type
action find_reverse
entity Prishtina
relation capital
type regime
[{'concept': 'regime'}, 'capital', 'Prishtina']
SELECT DISTINCT ?z WHERE { ?z property:capital resource:Prishtina . ?z rdf:type ontology:regime }
[]
regime
Q2631403 Q1246
SYSTEM
Republic of Kosova, Kosovo
Q2631403 Q1246
(c(Q5589178),P36,Q25270)
action filter_type
action find_reverse
entity Q25270
relation P36
type Q5589178
[ANSWERS] consist of that administrative territory as their capital
[{'concept': 'Q5589178'}, 'P36', 'Q25270']
SELECT DISTINCT ?z WHERE { ?z property:P36 resource:Q25270 . ?z rdf:type ontology:Q5589178 }
Republic of Kosova Kosovo
Republic of Kosova and Kosovo consist of that administrative territory as their capital
Republic of Kosova Kosovo
action filter_type
action find_reverse
entity Prishtina
relation capital
type regime
[{'concept': 'regime'}, 'capital', 'Prishtina']
SELECT DISTINCT ?z WHERE { ?z property:capital resource:Prishtina . ?z rdf:type ontology:regime }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6247838 Q125791
P166
Q618779
USER
Which awards were received by Fadil Hoxha or John McGrath ?
OR((Q125791,P166,c(Q618779)), (Q6247838,P166,c(Q618779)))
action filter_type
action union
action find
entity Q125791
relation P166
action find
entity Q6247838
relation P166
type Q618779
{'OR': [['Q125791', 'P166', {'concept': 'Q618779'}], ['Q6247838', 'P166', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?n ) { ( resource:Q125791 ) ( resource:Q6247838 ) } . ?n property:P166 ?a } . ?a rdf:type ontology:Q618779 }
John McGrath Fadil Hoxha
action filter_type
action union
action find
entity Fadil Hoxha
relation award received
action find
entity John McGrath
relation award received
type award
{'OR': [['Fadil Hoxha', 'award received', {'concept': 'award'}], ['John McGrath', 'award received', {'concept': 'award'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?n ) { ( resource:Fadil_Hoxha ) ( resource:John_McGrath ) } . ?n property:award_received ?a } . ?a rdf:type ontology:award }
[]
award
Q80589 Q2671523 Q852071 Q928314
SYSTEM
National Hero of Yugoslavia, Order of the Hero of Socialist Labour, Silver Star, Bronze Star Medal
Q80589 Q2671523 Q852071 Q928314
OR((Q125791,P166,c(Q618779)), (Q6247838,P166,c(Q618779)))
action filter_type
action union
action find
entity Q125791
relation P166
action find
entity Q6247838
relation P166
type Q618779
The [ANSWERS] were received by Fadil Hoxha or John McGrath
{'OR': [['Q125791', 'P166', {'concept': 'Q618779'}], ['Q6247838', 'P166', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?n ) { ( resource:Q125791 ) ( resource:Q6247838 ) } . ?n property:P166 ?a } . ?a rdf:type ontology:Q618779 }
National Hero of Yugoslavia Order of the Hero of Socialist Labour Silver Star Bronze Star Medal
The National Hero of Yugoslavia, Order of the Hero of Socialist Labour, Silver Star and Bronze Star Medal were received by Fadil Hoxha or John McGrath
National Hero of Yugoslavia Order of the Hero of Socialist Labour Silver Star Bronze Star Medal
action filter_type
action union
action find
entity Fadil Hoxha
relation award received
action find
entity John McGrath
relation award received
type award
{'OR': [['Fadil Hoxha', 'award received', {'concept': 'award'}], ['John McGrath', 'award received', {'concept': 'award'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?n ) { ( resource:Fadil_Hoxha ) ( resource:John_McGrath ) } . ?n property:award_received ?a } . ?a rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1246
P47
Q15617994
USER
Which administrative territories do Kosovo share a border with ?
(c(Q15617994),P47,Q1246)
action filter_type
action find
entity Q1246
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q1246']
SELECT DISTINCT ?g WHERE { resource:Q1246 property:P47 ?g . ?g rdf:type ontology:Q15617994 }
Kosovo
action filter_type
action find
entity Kosovo
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Kosovo']
SELECT DISTINCT ?g WHERE { resource:Kosovo property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q403 Q222 Q236
SYSTEM
Serbia, Albania, Montenegro
Q403 Q236 Q222 Q221
(c(Q15617994),P47,Q1246)
action filter_type
action find
entity Q1246
relation P47
type Q15617994
A border with Montenegro [ANSWERS] Kosovo share
[{'concept': 'Q15617994'}, 'P47', 'Q1246']
SELECT DISTINCT ?g WHERE { resource:Q1246 property:P47 ?g . ?g rdf:type ontology:Q15617994 }
Serbia Montenegro Albania Republic of Macedonia
A border with Montenegro Serbia, Albania and Montenegro Kosovo share
Serbia Albania Montenegro
action filter_type
action find
entity Kosovo
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Kosovo']
SELECT DISTINCT ?g WHERE { resource:Kosovo property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q222
P85
Q484692
USER
Which is the national anthem of that administrative territory ?
(Q222,P85,c(Q484692))
action filter_type
action find
entity Q222
relation P85
type Q484692
['Q222', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q484692 . resource:Q222 property:P85 ?g }
Albania
action filter_type
action find
entity Albania
relation anthem
type hymn
['Albania', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:hymn . resource:Albania property:anthem ?g }
[]
hymn
Clarification for simple ques.
Q236
SYSTEM
Did you mean Montenegro ?
Q403 Q222 Q236
(Q403,P85,c(Q484692)) (Q222,P85,c(Q484692)) (Q236,P85,c(Q484692))
[ANSWER]
['Q403', 'P85', {'concept': 'Q484692'}] ['Q222', 'P85', {'concept': 'Q484692'}] ['Q236', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q484692 . resource:Q222 property:P85 ?g }
Serbia Albania Montenegro
Did you mean Montenegro ?
Montenegro
['Serbia', 'anthem', {'concept': 'hymn'}] ['Albania', 'anthem', {'concept': 'hymn'}] ['Montenegro', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:hymn . resource:Albania property:anthem ?g }
[]
Simple Question (Coreferenced)
USER
No, I meant Albania. Could you tell me the answer for that?
(Q222,P85,c(Q484692))
Q222
['Q222', 'P85', {'concept': 'Q484692'}]
['Albania', 'anthem', {'concept': 'hymn'}]
[]
Q168731
SYSTEM
Himni i Flamurit
Q168731
(Q222,P85,c(Q484692))
action filter_type
action find
entity Q222
relation P85
type Q484692
The national anthem of that administrative territory is the [ANSWER]
['Q222', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q484692 . resource:Q222 property:P85 ?g }
Himni i Flamurit
The national anthem of that administrative territory is the Himni i Flamurit
Himni i Flamurit
action filter_type
action find
entity Albania
relation anthem
type hymn
['Albania', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:hymn . resource:Albania property:anthem ?g }
[]