Simple Question (Direct)
Simple Question
Q95521
P27
Q1048835
USER
Which political territory is Franz Lucas an inhabitant of ?
(Q95521,P27,c(Q1048835))
action filter_type
action find
entity Q95521
relation P27
type Q1048835
['Q95521', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . resource:Q95521 property:P27 ?u }
Franz Lucas
action filter_type
action find
entity Franz Lucas
relation country of citizenship
type political territorial entity
['Franz Lucas', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . resource:Franz_Lucas property:country_of_citizenship ?u }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q95521,P27,c(Q1048835))
action filter_type
action find
entity Q95521
relation P27
type Q1048835
The [ANSWER] is Franz Lucas an inhabitant of
['Q95521', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . resource:Q95521 property:P27 ?u }
Germany
The Germany is Franz Lucas an inhabitant of
Germany
action filter_type
action find
entity Franz Lucas
relation country of citizenship
type political territorial entity
['Franz Lucas', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . resource:Franz_Lucas property:country_of_citizenship ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P17
Q1048835
USER
Which political territory is that one situated in ?
(Q183,P17,c(Q1048835))
action filter_type
action find
entity Q183
relation P17
type Q1048835
['Q183', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q183 property:P17 ?y . ?y rdf:type ontology:Q1048835 }
Germany
action filter_type
action find
entity Germany
relation country
type political territorial entity
['Germany', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Germany property:country ?y . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q183,P17,c(Q1048835))
action filter_type
action find
entity Q183
relation P17
type Q1048835
That one is situated in [ANSWER]
['Q183', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q183 property:P17 ?y . ?y rdf:type ontology:Q1048835 }
Germany
That one is situated in Germany
Germany
action filter_type
action find
entity Germany
relation country
type political territorial entity
['Germany', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Germany property:country ?y . ?y rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P36
Q56061
USER
Which administrative territories are the capitals of that political territory ?
(Q183,P36,c(Q56061))
action filter_type
action find
entity Q183
relation P36
type Q56061
['Q183', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q183 property:P36 ?z . ?z rdf:type ontology:Q56061 }
Germany
action filter_type
action find
entity Germany
relation capital
type administrative territorial entity
['Germany', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Germany property:capital ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q586
SYSTEM
Berlin, Bonn
Q64 Q586
(Q183,P36,c(Q56061))
action filter_type
action find
entity Q183
relation P36
type Q56061
[ANSWERS] are the capitals of that political territory
['Q183', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q183 property:P36 ?z . ?z rdf:type ontology:Q56061 }
Berlin Bonn
Berlin and Bonn are the capitals of that political territory
Berlin Bonn
action filter_type
action find
entity Germany
relation capital
type administrative territorial entity
['Germany', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Germany property:capital ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1929074
P937
Q502895
USER
Do Michael Roth have those administrative territories as their work location ?
(Q1929074,P937,Q64) (Q1929074,P937,Q586)
action is_in
entity prev_answer
action find
entity Q1929074
relation P937
['Q1929074', 'P937', 'Q64'] ['Q1929074', 'P937', 'Q586']
ASK WHERE { resource:Q1929074 property:P937 ?o . VALUES ( ?o ) { ( resource:Q64 ) ( resource:Q586 ) } }
Michael Roth
action is_in
entity prev_answer
action find
entity Michael Roth
relation work location
['Michael Roth', 'work location', 'Berlin'] ['Michael Roth', 'work location', 'Bonn']
ASK WHERE { resource:Michael_Roth property:work_location ?o . VALUES ( ?o ) { ( resource:Berlin ) ( resource:Bonn ) } }
[]
common name
SYSTEM
YES
(Q1929074,P937,Q64) (Q1929074,P937,Q586)
action is_in
entity prev_answer
action find
entity Q1929074
relation P937
[ANSWER]
['Q1929074', 'P937', 'Q64'] ['Q1929074', 'P937', 'Q586']
ASK WHERE { resource:Q1929074 property:P937 ?o . VALUES ( ?o ) { ( resource:Q64 ) ( resource:Q586 ) } }
Yes
action is_in
entity prev_answer
action find
entity Michael Roth
relation work location
['Michael Roth', 'work location', 'Berlin'] ['Michael Roth', 'work location', 'Bonn']
ASK WHERE { resource:Michael_Roth property:work_location ?o . VALUES ( ?o ) { ( resource:Berlin ) ( resource:Bonn ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P47
Q1048835
USER
Which political territories share border with Berlin ?
(Q64,P47,c(Q1048835))
action filter_type
action find
entity Q64
relation P47
type Q1048835
['Q64', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { resource:Q64 property:P47 ?x . ?x rdf:type ontology:Q1048835 }
Berlin
action filter_type
action find
entity Berlin
relation shares border with
type political territorial entity
['Berlin', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Berlin property:shares_border_with ?x . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q6142 Q6146 Q6139
SYSTEM
Potsdam-Mittelmark, Teltow-Fläming, Havelland
Q6173 Q6139 Q6142 Q6115 Q6181 Q6146 Q6178 Q6119
(Q64,P47,c(Q1048835))
action filter_type
action find
entity Q64
relation P47
type Q1048835
[ANSWERS] share border with Berlin
['Q64', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { resource:Q64 property:P47 ?x . ?x rdf:type ontology:Q1048835 }
Dahme-Spreewald Havelland Potsdam-Mittelmark Barnim Märkisch-Oderland Teltow-Fläming Oder-Spree Oberhavel
Potsdam-Mittelmark, Teltow-Fläming and Havelland share border with Berlin
Potsdam-Mittelmark Teltow-Fläming Havelland
action filter_type
action find
entity Berlin
relation shares border with
type political territorial entity
['Berlin', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Berlin property:shares_border_with ?x . ?x rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6146
P159
Q56061
USER
Where is the headquarter of that political territory located ?
(Q6146,P159,c(Q56061))
action filter_type
action find
entity Q6146
relation P159
type Q56061
['Q6146', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q6146 property:P159 ?n . ?n rdf:type ontology:Q56061 }
Teltow-Fläming
action filter_type
action find
entity Teltow-Fläming
relation headquarters location
type administrative territorial entity
['Teltow-Fläming', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Teltow-Fläming property:headquarters_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q6146
SYSTEM
Did you mean Teltow-Fläming ?
Q6142 Q6146 Q6139
(Q6142,P159,c(Q56061)) (Q6146,P159,c(Q56061)) (Q6139,P159,c(Q56061))
[ANSWER]
['Q6142', 'P159', {'concept': 'Q56061'}] ['Q6146', 'P159', {'concept': 'Q56061'}] ['Q6139', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q6146 property:P159 ?n . ?n rdf:type ontology:Q56061 }
Potsdam-Mittelmark Teltow-Fläming Havelland
Did you mean Teltow-Fläming ?
Teltow-Fläming
['Potsdam-Mittelmark', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Teltow-Fläming', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Havelland', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Teltow-Fläming property:headquarters_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q6146,P159,c(Q56061))
['Q6146', 'P159', {'concept': 'Q56061'}]
['Teltow-Fläming', 'headquarters location', {'concept': 'administrative territorial entity'}]
[]
Q574146
SYSTEM
Luckenwalde
Q574146
(Q6146,P159,c(Q56061))
action filter_type
action find
entity Q6146
relation P159
type Q56061
The headquarter of that political territory is located in [ANSWER]
['Q6146', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q6146 property:P159 ?n . ?n rdf:type ontology:Q56061 }
Luckenwalde
The headquarter of that political territory is located in Luckenwalde
Luckenwalde
action filter_type
action find
entity Teltow-Fläming
relation headquarters location
type administrative territorial entity
['Teltow-Fläming', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Teltow-Fläming property:headquarters_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q6146
P47
Q56061 Q1048835
USER
How many administrative territories or political territories are bordered by Teltow-Fläming ?
(Q6146,P47,c(Q56061)) (Q6146,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q6146
relation P47
type Q56061
action filter_type
action find
entity Q6146
relation P47
type Q1048835
['Q6146', 'P47', {'concept': 'Q56061'}] ['Q6146', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } }
Teltow-Fläming
action count
action union
action filter_type
action find
entity Teltow-Fläming
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Teltow-Fläming
relation shares border with
type political territorial entity
['Teltow-Fläming', 'shares border with', {'concept': 'administrative territorial entity'}] ['Teltow-Fläming', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } }
[]
administrative territorial entity political territorial entity
SYSTEM
6
Q6075 Q460149 Q6173 Q64 Q6152 Q6142
(Q6146,P47,c(Q56061)) (Q6146,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q6146
relation P47
type Q56061
action filter_type
action find
entity Q6146
relation P47
type Q1048835
[ANSWER]
['Q6146', 'P47', {'concept': 'Q56061'}] ['Q6146', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } }
Wittenberg Schenkenländchen Dahme-Spreewald Berlin Elbe-Elster Potsdam-Mittelmark
6
action count
action union
action filter_type
action find
entity Teltow-Fläming
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Teltow-Fläming
relation shares border with
type political territorial entity
['Teltow-Fläming', 'shares border with', {'concept': 'administrative territorial entity'}] ['Teltow-Fläming', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6142
P127
Q4830453
USER
Which business enterprise is owned by Potsdam-Mittelmark ?
(c(Q4830453),P127,Q6142)
action filter_type
action find_reverse
entity Q6142
relation P127
type Q4830453
[{'concept': 'Q4830453'}, 'P127', 'Q6142']
SELECT DISTINCT ?b WHERE { ?b property:P127 resource:Q6142 . ?b rdf:type ontology:Q4830453 }
Potsdam-Mittelmark
action filter_type
action find_reverse
entity Potsdam-Mittelmark
relation owned by
type business enterprise
[{'concept': 'business enterprise'}, 'owned by', 'Potsdam-Mittelmark']
SELECT DISTINCT ?b WHERE { ?b property:owned_by resource:Potsdam-Mittelmark . ?b rdf:type ontology:business_enterprise }
[]
business enterprise
Q1591492
SYSTEM
Havelbus
Q1591492
(c(Q4830453),P127,Q6142)
action filter_type
action find_reverse
entity Q6142
relation P127
type Q4830453
And [ANSWER] is owned by Potsdam-Mittelmark
[{'concept': 'Q4830453'}, 'P127', 'Q6142']
SELECT DISTINCT ?b WHERE { ?b property:P127 resource:Q6142 . ?b rdf:type ontology:Q4830453 }
Havelbus
And Havelbus is owned by Potsdam-Mittelmark
Havelbus
action filter_type
action find_reverse
entity Potsdam-Mittelmark
relation owned by
type business enterprise
[{'concept': 'business enterprise'}, 'owned by', 'Potsdam-Mittelmark']
SELECT DISTINCT ?b WHERE { ?b property:owned_by resource:Potsdam-Mittelmark . ?b rdf:type ontology:business_enterprise }
[]