Simple Question (Direct)
Simple Question
Q1731365
P937
Q56061
USER
What is the location where Karl Götz Olenhusen worked ?
(Q1731365,P937,c(Q56061))
action filter_type
action find
entity Q1731365
relation P937
type Q56061
['Q1731365', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q1731365 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Karl Götz Olenhusen
action filter_type
action find
entity Karl Götz Olenhusen
relation work location
type administrative territorial entity
['Karl Götz Olenhusen', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Karl_Götz_Olenhusen property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q1731365,P937,c(Q56061))
action filter_type
action find
entity Q1731365
relation P937
type Q56061
The location Karl Götz Olenhusen worked is in [ANSWER]
['Q1731365', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q1731365 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Berlin
The location Karl Götz Olenhusen worked is in Berlin
Berlin
action filter_type
action find
entity Karl Götz Olenhusen
relation work location
type administrative territorial entity
['Karl Götz Olenhusen', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Karl_Götz_Olenhusen property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q64
P495
Q11435
USER
Which liquid has that administrative territory as its place of origin ?
(c(Q11435),P495,Q64)
action filter_type
action find_reverse
entity Q64
relation P495
type Q11435
[{'concept': 'Q11435'}, 'P495', 'Q64']
SELECT DISTINCT ?e WHERE { ?e property:P495 resource:Q64 . ?e rdf:type ontology:Q11435 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation country of origin
type liquid
[{'concept': 'liquid'}, 'country of origin', 'Berlin']
SELECT DISTINCT ?e WHERE { ?e property:country_of_origin resource:Berlin . ?e rdf:type ontology:liquid }
[]
liquid
Q2587685
SYSTEM
gorbatschow
Q2587685
(c(Q11435),P495,Q64)
action filter_type
action find_reverse
entity Q64
relation P495
type Q11435
[ANSWER] has that administrative territory as its place of origin
[{'concept': 'Q11435'}, 'P495', 'Q64']
SELECT DISTINCT ?e WHERE { ?e property:P495 resource:Q64 . ?e rdf:type ontology:Q11435 }
gorbatschow
Gorbatschow has that administrative territory as its place of origin
gorbatschow
action filter_type
action find_reverse
entity Berlin
relation country of origin
type liquid
[{'concept': 'liquid'}, 'country of origin', 'Berlin']
SELECT DISTINCT ?e WHERE { ?e property:country_of_origin resource:Berlin . ?e rdf:type ontology:liquid }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P17
Q15617994
USER
Which administrative territory is Berlin a part of ?
(Q64,P17,c(Q15617994))
action filter_type
action find
entity Q64
relation P17
type Q15617994
['Q64', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q64 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Berlin
action filter_type
action find
entity Berlin
relation country
type designation for an administrative territorial entity
['Berlin', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Berlin property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148499
SYSTEM
Margraviate of Brandenburg
Q148499
(Q64,P17,c(Q15617994))
action filter_type
action find
entity Q64
relation P17
type Q15617994
Which administrative territory is Berlin a part of
['Q64', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q64 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Margraviate of Brandenburg
Which administrative territory is Berlin a part of
Margraviate of Brandenburg
action filter_type
action find
entity Berlin
relation country
type designation for an administrative territorial entity
['Berlin', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Berlin property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5346166
Q15617994
USER
And how about Edwardów, Biłgoraj County?
(Q5346166,P17,c(Q15617994))
action filter_type
action find
entity Q5346166
relation P17
type Q15617994
['Q5346166', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q5346166 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
Edwardów, Biłgoraj County
action filter_type
action find
entity Edwardów, Biłgoraj County
relation country
type designation for an administrative territorial entity
['Edwardów, Biłgoraj County', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Edwardów,_Biłgoraj_County property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q5346166,P17,c(Q15617994))
action filter_type
action find
entity Q5346166
relation P17
type Q15617994
[ANSWER]
['Q5346166', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q5346166 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
Poland
Poland
action filter_type
action find
entity Edwardów, Biłgoraj County
relation country
type designation for an administrative territorial entity
['Edwardów, Biłgoraj County', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Edwardów,_Biłgoraj_County property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q36 Q4711561
P206
Q355304
USER
Is Tiuleț River situated close to that administrative territory ?
(Q36,P206,Q4711561)
action is_in
entity Q4711561
action find
entity Q36
relation P206
['Q36', 'P206', 'Q4711561']
ASK WHERE { resource:Q36 property:P206 resource:Q4711561 }
Poland Tiuleț River
action is_in
entity Tiuleț River
action find
entity Poland
relation located next to body of water
['Poland', 'located next to body of water', 'Tiuleț River']
ASK WHERE { resource:Poland property:located_next_to_body_of_water resource:Tiuleț_River }
[]
watercourse
SYSTEM
NO
(Q36,P206,Q4711561)
action is_in
entity Q4711561
action find
entity Q36
relation P206
[ANSWER]
['Q36', 'P206', 'Q4711561']
ASK WHERE { resource:Q36 property:P206 resource:Q4711561 }
No
action is_in
entity Tiuleț River
action find
entity Poland
relation located next to body of water
['Poland', 'located next to body of water', 'Tiuleț River']
ASK WHERE { resource:Poland property:located_next_to_body_of_water resource:Tiuleț_River }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1731365 Q183
P27
Q1048835
USER
Is Germany the country of citizenship of that person ?
(Q1731365,P27,Q183)
action is_in
entity Q183
action find
entity Q1731365
relation P27
['Q1731365', 'P27', 'Q183']
ASK WHERE { resource:Q1731365 property:P27 resource:Q183 }
Karl Götz Olenhusen Germany
action is_in
entity Germany
action find
entity Karl Götz Olenhusen
relation country of citizenship
['Karl Götz Olenhusen', 'country of citizenship', 'Germany']
ASK WHERE { resource:Karl_Götz_Olenhusen property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q1731365,P27,Q183)
action is_in
entity Q183
action find
entity Q1731365
relation P27
[ANSWER]
['Q1731365', 'P27', 'Q183']
ASK WHERE { resource:Q1731365 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Karl Götz Olenhusen
relation country of citizenship
['Karl Götz Olenhusen', 'country of citizenship', 'Germany']
ASK WHERE { resource:Karl_Götz_Olenhusen property:country_of_citizenship resource:Germany }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1731365
P39
Q12737077
USER
What was the position for which that person was appointed ?
action filter_type
action find
entity Q1731365
relation P39
type Q12737077
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q1731365 property:P39 ?u }
Karl Götz Olenhusen
action filter_type
action find
entity Karl Götz Olenhusen
relation position held
type occupation
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Karl_Götz_Olenhusen property:position_held ?u }
[]
occupation
Q17854096
SYSTEM
member of the Reichstag of the German Empire
Q17854096
action filter_type
action find
entity Q1731365
relation P39
type Q12737077
Of [ANSWER]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q1731365 property:P39 ?u }
member of the Reichstag of the German Empire
Of member of the Reichstag of the German Empire
member of the Reichstag of the German Empire
action filter_type
action find
entity Karl Götz Olenhusen
relation position held
type occupation
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Karl_Götz_Olenhusen property:position_held ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1731365
P102
Q7210356
USER
Which political organization is that person a member of ?
(Q17854096,P102,c(Q7210356))
action filter_type
action find
entity Q1731365
relation P102
type Q7210356
['Q17854096', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?g WHERE { resource:Q1731365 property:P102 ?g . ?g rdf:type ontology:Q7210356 }
Karl Götz Olenhusen
action filter_type
action find
entity Karl Götz Olenhusen
relation member of political party
type political organization
['member of the Reichstag of the German Empire', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?g WHERE { resource:Karl_Götz_Olenhusen property:member_of_political_party ?g . ?g rdf:type ontology:political_organization }
[]
political organization
Q567550
SYSTEM
German-Hanoverian Party
Q567550
(Q17854096,P102,c(Q7210356))
action filter_type
action find
entity Q1731365
relation P102
type Q7210356
[ANSWER] is that person a member of
['Q17854096', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?g WHERE { resource:Q1731365 property:P102 ?g . ?g rdf:type ontology:Q7210356 }
German-Hanoverian Party
German-Hanoverian Party is that person a member of
German-Hanoverian Party
action filter_type
action find
entity Karl Götz Olenhusen
relation member of political party
type political organization
['member of the Reichstag of the German Empire', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?g WHERE { resource:Karl_Götz_Olenhusen property:member_of_political_party ?g . ?g rdf:type ontology:political_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q36
P206
Q355304
USER
How many watercourses are located in the neighbourhood of Poland ?
(Q36,P206,c(Q355304))
action count
action filter_type
action find
entity Q36
relation P206
type Q355304
['Q36', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Q36 property:P206 ?c . ?c rdf:type ontology:Q355304 }
Poland
action count
action filter_type
action find
entity Poland
relation located next to body of water
type watercourse
['Poland', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Poland property:located_next_to_body_of_water ?c . ?c rdf:type ontology:watercourse }
[]
watercourse
SYSTEM
12
Q756302 Q552 Q2142065 Q4176549 Q840694 Q582675 Q5602 Q1331973 Q548 Q156237 Q828869 Q577026
(Q36,P206,c(Q355304))
action count
action filter_type
action find
entity Q36
relation P206
type Q355304
[ANSWER]
['Q36', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Q36 property:P206 ?c . ?c rdf:type ontology:Q355304 }
Poprad Oder Divoká Orlice Białka Dunajec Jizera Lusatian Neisse Olza Vistula Western Bug Noteć Opava
12
action count
action filter_type
action find
entity Poland
relation located next to body of water
type watercourse
['Poland', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Poland property:located_next_to_body_of_water ?c . ?c rdf:type ontology:watercourse }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q2351193
Q355304
USER
And also tell me about Michalków?
(Q2351193,P206,c(Q355304))
action count
action filter_type
action find
entity Q2351193
relation P206
type Q355304
['Q2351193', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Q2351193 property:P206 ?r . ?r rdf:type ontology:Q355304 }
Michalków
action count
action filter_type
action find
entity Michalków
relation located next to body of water
type watercourse
['Michalków', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Michalków property:located_next_to_body_of_water ?r . ?r rdf:type ontology:watercourse }
[]
watercourse
SYSTEM
1
(Q2351193,P206,c(Q355304))
action count
action filter_type
action find
entity Q2351193
relation P206
type Q355304
[ANSWER]
['Q2351193', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Q2351193 property:P206 ?r . ?r rdf:type ontology:Q355304 }
1
action count
action filter_type
action find
entity Michalków
relation located next to body of water
type watercourse
['Michalków', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { resource:Michalków property:located_next_to_body_of_water ?r . ?r rdf:type ontology:watercourse }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q4667505 Q183
P530 P17
Q15617994
USER
Which administrative territories holds diplomatic relationship with Germany and are not Abi, Perlis present in ?
AND((Q183,P530,c(Q15617994)), NOT((Q4667505,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q4667505
relation P17
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q4667505', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?g WHERE { FILTER NOT EXISTS { resource:Q4667505 property:P17 ?g } . resource:Q183 property:P530 ?g . ?g rdf:type ontology:Q15617994 }
Abi, Perlis Germany
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Abi, Perlis
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Abi, Perlis', 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?g WHERE { FILTER NOT EXISTS { resource:Abi,_Perlis property:country ?g } . resource:Germany property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q804 Q948 Q79 Q912 Q265 Q419 Q1049 Q45 Q241 Q801
SYSTEM
Some of them are Panama, Tunisia, Egypt, Mali, Uzbekistan, Peru, Sudan, Portugal, Cuba, Israel
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q347 Q227 Q225 Q224 Q222 Q96 Q229 Q228 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
AND((Q183,P530,c(Q15617994)), NOT((Q4667505,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q4667505
relation P17
type Q15617994
[ANSWERS] hold diplomatic relationship with Germany and are not Abi, Perlis present in
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q4667505', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?g WHERE { FILTER NOT EXISTS { resource:Q4667505 property:P17 ?g } . resource:Q183 property:P530 ?g . ?g rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Liechtenstein Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Andorra Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
Panama, Tunisia, Egypt, Mali, Uzbekistan, Peru, Sudan, Portugal, Cuba and Israel hold diplomatic relationship with Germany and are not Abi, Perlis present in
Panama Tunisia Egypt Mali Uzbekistan Peru Sudan Portugal Cuba Israel
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Abi, Perlis
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Abi, Perlis', 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?g WHERE { FILTER NOT EXISTS { resource:Abi,_Perlis property:country ?g } . resource:Germany property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]