Simple Question (Direct)
Simple Question
Q4722227
P607
Q178561
USER
What was was Alfred Ambs a part of ?
(Q4722227,P607,c(Q178561))
action filter_type
action find
entity Q4722227
relation P607
type Q178561
['Q4722227', 'P607', {'concept': 'Q178561'}]
SELECT DISTINCT ?y WHERE { resource:Q4722227 property:P607 ?y . ?y rdf:type ontology:Q178561 }
Alfred Ambs
action filter_type
action find
entity Alfred Ambs
relation conflict
type battle
['Alfred Ambs', 'conflict', {'concept': 'battle'}]
SELECT DISTINCT ?y WHERE { resource:Alfred_Ambs property:conflict ?y . ?y rdf:type ontology:battle }
[]
battle
Q2704274
SYSTEM
Defence of the Reich
Q2704274
(Q4722227,P607,c(Q178561))
action filter_type
action find
entity Q4722227
relation P607
type Q178561
Alfred Ambs was a part of [ANSWER]
['Q4722227', 'P607', {'concept': 'Q178561'}]
SELECT DISTINCT ?y WHERE { resource:Q4722227 property:P607 ?y . ?y rdf:type ontology:Q178561 }
Defence of the Reich
Alfred Ambs was a part of Defence of the Reich
Defence of the Reich
action filter_type
action find
entity Alfred Ambs
relation conflict
type battle
['Alfred Ambs', 'conflict', {'concept': 'battle'}]
SELECT DISTINCT ?y WHERE { resource:Alfred_Ambs property:conflict ?y . ?y rdf:type ontology:battle }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4722227
P27
Q1048835
USER
Which political territory is Alfred Ambs a civilian of ?
(Q4722227,P27,c(Q1048835))
action filter_type
action find
entity Q4722227
relation P27
type Q1048835
['Q4722227', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1048835 . resource:Q4722227 property:P27 ?e }
Alfred Ambs
action filter_type
action find
entity Alfred Ambs
relation country of citizenship
type political territorial entity
['Alfred Ambs', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:political_territorial_entity . resource:Alfred_Ambs property:country_of_citizenship ?e }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q4722227,P27,c(Q1048835))
action filter_type
action find
entity Q4722227
relation P27
type Q1048835
[ANSWER] is Alfred Ambs a civilian of
['Q4722227', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1048835 . resource:Q4722227 property:P27 ?e }
Germany
Germany is Alfred Ambs a civilian of
Germany
action filter_type
action find
entity Alfred Ambs
relation country of citizenship
type political territorial entity
['Alfred Ambs', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:political_territorial_entity . resource:Alfred_Ambs property:country_of_citizenship ?e }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16065023
Q1048835
USER
And also tell me about Hans Kratzert?
(Q16065023,P27,c(Q1048835))
action filter_type
action find
entity Q16065023
relation P27
type Q1048835
['Q16065023', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q16065023 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
Hans Kratzert
action filter_type
action find
entity Hans Kratzert
relation country of citizenship
type political territorial entity
['Hans Kratzert', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Hans_Kratzert property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q16065023,P27,c(Q1048835))
action filter_type
action find
entity Q16065023
relation P27
type Q1048835
[ANSWER]
['Q16065023', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q16065023 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
Germany
Germany
action filter_type
action find
entity Hans Kratzert
relation country of citizenship
type political territorial entity
['Hans Kratzert', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Hans_Kratzert property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6274167 Q4722227
P106
Q12737077
USER
Which occupations are the professions of Alfred Ambs or Jonathan Pool ?
OR((Q4722227,P106,c(Q12737077)), (Q6274167,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q4722227
relation P106
action find
entity Q6274167
relation P106
type Q12737077
{'OR': [['Q4722227', 'P106', {'concept': 'Q12737077'}], ['Q6274167', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?f ) { ( resource:Q4722227 ) ( resource:Q6274167 ) } . ?f property:P106 ?s } . ?s rdf:type ontology:Q12737077 }
Jonathan Pool Alfred Ambs
action filter_type
action union
action find
entity Alfred Ambs
relation occupation
action find
entity Jonathan Pool
relation occupation
type occupation
{'OR': [['Alfred Ambs', 'occupation', {'concept': 'occupation'}], ['Jonathan Pool', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?f ) { ( resource:Alfred_Ambs ) ( resource:Jonathan_Pool ) } . ?f property:occupation ?s } . ?s rdf:type ontology:occupation }
[]
occupation
Q1238570 Q42973 Q47064
SYSTEM
political scientist, architect, military personnel
Q1238570 Q42973 Q47064
OR((Q4722227,P106,c(Q12737077)), (Q6274167,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q4722227
relation P106
action find
entity Q6274167
relation P106
type Q12737077
The professions of Alfred Ambs or Jonathan are a [ANSWERS]
{'OR': [['Q4722227', 'P106', {'concept': 'Q12737077'}], ['Q6274167', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?f ) { ( resource:Q4722227 ) ( resource:Q6274167 ) } . ?f property:P106 ?s } . ?s rdf:type ontology:Q12737077 }
political scientist architect military personnel
The professions of Alfred Ambs or Jonathan are a political scientist, architect and military personnel
political scientist architect military personnel
action filter_type
action union
action find
entity Alfred Ambs
relation occupation
action find
entity Jonathan Pool
relation occupation
type occupation
{'OR': [['Alfred Ambs', 'occupation', {'concept': 'occupation'}], ['Jonathan Pool', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?f ) { ( resource:Alfred_Ambs ) ( resource:Jonathan_Pool ) } . ?f property:occupation ?s } . ?s rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P47
Q15617994
USER
Which administrative territories are bordered by Germany ?
(Q183,P47,c(Q15617994))
action filter_type
action find
entity Q183
relation P47
type Q15617994
['Q183', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q183 property:P47 ?l . ?l rdf:type ontology:Q15617994 }
Germany
action filter_type
action find
entity Germany
relation shares border with
type designation for an administrative territorial entity
['Germany', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Germany property:shares_border_with ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55 Q142 Q36
SYSTEM
Netherlands, France, Poland
Q142 Q213 Q55 Q29999 Q32 Q31 Q36 Q39
(Q183,P47,c(Q15617994))
action filter_type
action find
entity Q183
relation P47
type Q15617994
The [ANSWERS] are bordered by Germany
['Q183', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q183 property:P47 ?l . ?l rdf:type ontology:Q15617994 }
France Czech Republic Netherlands Kingdom of the Netherlands Luxembourg Belgium Poland Switzerland
The Netherlands, France and Poland are bordered by Germany
Netherlands France Poland
action filter_type
action find
entity Germany
relation shares border with
type designation for an administrative territorial entity
['Germany', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Germany property:shares_border_with ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q55 Q142 Q36
P463
Q43229
USER
What organizations were Netherlands, France and Poland a member of ?
(Q55,P463,c(Q43229)) (Q142,P463,c(Q43229)) (Q36,P463,c(Q43229))
action union
action filter_type
action find
entity Q55
relation P463
type Q43229
action filter_type
action find
entity Q142
relation P463
type Q43229
action filter_type
action find
entity Q36
relation P463
type Q43229
['Q55', 'P463', {'concept': 'Q43229'}] ['Q142', 'P463', {'concept': 'Q43229'}] ['Q36', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?p ) { ( resource:Q55 ) ( resource:Q142 ) } . ?p property:P463 ?m }
Netherlands France Poland
action union
action filter_type
action find
entity Netherlands
relation member of
type organization
action filter_type
action find
entity France
relation member of
type organization
action filter_type
action find
entity Poland
relation member of
type organization
['Netherlands', 'member of', {'concept': 'organization'}] ['France', 'member of', {'concept': 'organization'}] ['Poland', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?p ) { ( resource:Netherlands ) ( resource:France ) } . ?p property:member_of ?m }
[]
organization
Q7809 Q7809 Q42944
SYSTEM
United Nations Educational, Scientific and Cultural Organization for 1st, 2nd, European Organization for Nuclear Research for 3rd
Q125761 Q1153087 Q309195 Q192247 Q41550 Q340195 Q132551 Q15028 Q689859 Q7809 Q7825 Q161549 Q42944 Q1071706 Q151991 Q461736 Q40970 Q488981 Q386120 Q82151 Q827525 Q340195 Q191384 Q41550 Q899770 Q42944 Q1331152 Q656801 Q151991 Q161549 Q7825 Q827525 Q191384 Q41550 Q7809 Q7825 Q177773 Q656801 Q827525
(Q55,P463,c(Q43229)) (Q142,P463,c(Q43229)) (Q36,P463,c(Q43229))
action union
action filter_type
action find
entity Q55
relation P463
type Q43229
action filter_type
action find
entity Q142
relation P463
type Q43229
action filter_type
action find
entity Q36
relation P463
type Q43229
[ANSWERS]
['Q55', 'P463', {'concept': 'Q43229'}] ['Q142', 'P463', {'concept': 'Q43229'}] ['Q36', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?p ) { ( resource:Q55 ) ( resource:Q142 ) } . ?p property:P463 ?m }
International Civil Aviation Organization Inter-American Development Bank Bank for International Settlements European Investment Bank Organisation for Economic Co-operation and Development African Development Bank United Nations High Commissioner for Refugees International Organization for Standardization International Fund for Agricultural Development United Nations Educational, Scientific and Cultural Organization World Trade Organization European Coal and Steel Community European Organization for Nuclear Research International Trade Union Confederation European Southern Observatory Paris Club International Olympic Committee European Bank for Reconstruction and Development United Nations Industrial Development Organization Food and Agriculture Organization of the United Nations International Development Association African Development Bank International Bank for Reconstruction and Development Organisation for Economic Co-operation and Development International Centre for Settlement of Investment Disputes European Organization for Nuclear Research Open Government Partnership International Finance Corporation European Southern Observatory European Coal and Steel Community World Trade Organization International Development Association International Bank for Reconstruction and Development Organisation for Economic Co-operation and Development United Nations Educational, Scientific and Cultural Organization World Trade Organization World Intellectual Property Organization International Finance Corporation International Development Association
United Nations Educational, Scientific and Cultural Organization, United Nations Educational, Scientific and Cultural Organization and European Organization for Nuclear Research were Netherlands, France and Poland a member of
United Nations Educational, Scientific and Cultural Organization United Nations Educational, Scientific and Cultural Organization European Organization for Nuclear Research
action union
action filter_type
action find
entity Netherlands
relation member of
type organization
action filter_type
action find
entity France
relation member of
type organization
action filter_type
action find
entity Poland
relation member of
type organization
['Netherlands', 'member of', {'concept': 'organization'}] ['France', 'member of', {'concept': 'organization'}] ['Poland', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?p ) { ( resource:Netherlands ) ( resource:France ) } . ?p property:member_of ?m }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7809
P488
Q502895
USER
Who were the chairpersons of that organization ?
(Q7809,P488,c(Q502895))
action filter_type
action find
entity Q7809
relation P488
type Q502895
['Q7809', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q7809 property:P488 ?g }
United Nations Educational, Scientific and Cultural Organization
action filter_type
action find
entity United Nations Educational, Scientific and Cultural Organization
relation chairperson
type common name
['United Nations Educational, Scientific and Cultural Organization', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:United_Nations_Educational,_Scientific_and_Cultural_Organization property:chairperson ?g }
[]
common name
Clarification for simple ques.
Q42944
SYSTEM
Did you mean European Organization for Nuclear Research ?
Q7809 Q7809 Q42944
(Q7809,P488,c(Q502895)) (Q7809,P488,c(Q502895)) (Q42944,P488,c(Q502895))
[ANSWER]
['Q7809', 'P488', {'concept': 'Q502895'}] ['Q7809', 'P488', {'concept': 'Q502895'}] ['Q42944', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q7809 property:P488 ?g }
United Nations Educational, Scientific and Cultural Organization United Nations Educational, Scientific and Cultural Organization European Organization for Nuclear Research
Did you mean European Organization for Nuclear Research ?
European Organization for Nuclear Research
['United Nations Educational, Scientific and Cultural Organization', 'chairperson', {'concept': 'common name'}] ['United Nations Educational, Scientific and Cultural Organization', 'chairperson', {'concept': 'common name'}] ['European Organization for Nuclear Research', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:United_Nations_Educational,_Scientific_and_Cultural_Organization property:chairperson ?g }
[]
Simple Question (Coreferenced)
USER
No, I meant United Nations Educational, Scientific and Cultural Organization. Could you tell me the answer for that?
(Q7809,P488,c(Q502895))
Q7809
['Q7809', 'P488', {'concept': 'Q502895'}]
['United Nations Educational, Scientific and Cultural Organization', 'chairperson', {'concept': 'common name'}]
[]
Q936897 Q457158 Q243419
SYSTEM
Luther H. Evans, Federico Mayor Zaragoza, Julian Huxley
Q230850 Q318985 Q457158 Q243419 Q740168 Q1491001 Q1388396 Q936897 Q1388759 Q553110
(Q7809,P488,c(Q502895))
action filter_type
action find
entity Q7809
relation P488
type Q502895
The chairpersons of that organization were [ANSWERS]
['Q7809', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q7809 property:P488 ?g }
Irina Bokova Kōichirō Matsuura Federico Mayor Zaragoza Julian Huxley Amadou-Mahtar M'Bow John Wilkinson Taylor Vittorino Veronese Luther H. Evans René Maheu Jaime Torres Bodet
The chairpersons of that organization were Luther H. Evans, Federico Mayor Zaragoza and Julian Huxley
Luther H. Evans Federico Mayor Zaragoza Julian Huxley
action filter_type
action find
entity United Nations Educational, Scientific and Cultural Organization
relation chairperson
type common name
['United Nations Educational, Scientific and Cultural Organization', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:United_Nations_Educational,_Scientific_and_Cultural_Organization property:chairperson ?g }
[]