Simple Question (Direct)
Simple Question
Q880894
P21
Q290
USER
Which sex does Jean Paul Ertel belong to ?
(Q880894,P21,c(Q290))
action filter_type
action find
entity Q880894
relation P21
type Q290
['Q880894', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q880894 property:P21 ?i . ?i rdf:type ontology:Q290 }
Jean Paul Ertel
action filter_type
action find
entity Jean Paul Ertel
relation gender
type sex
['Jean Paul Ertel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Jean_Paul_Ertel property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q880894,P21,c(Q290))
action filter_type
action find
entity Q880894
relation P21
type Q290
Jean Paul Ertel belongs to [ANSWER]
['Q880894', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q880894 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
Jean Paul Ertel belongs to male
male
action filter_type
action find
entity Jean Paul Ertel
relation gender
type sex
['Jean Paul Ertel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Jean_Paul_Ertel property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q880894
P20
Q56061
USER
Which administrative territory is the place of death of that person ?
(Q6581097,P20,c(Q56061))
action filter_type
action find
entity Q880894
relation P20
type Q56061
['Q6581097', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q880894 property:P20 ?a . ?a rdf:type ontology:Q56061 }
Jean Paul Ertel
action filter_type
action find
entity Jean Paul Ertel
relation place of death
type administrative territorial entity
['male', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Jean_Paul_Ertel property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q6581097,P20,c(Q56061))
action filter_type
action find
entity Q880894
relation P20
type Q56061
[ANSWER] is the place of death of that person
['Q6581097', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q880894 property:P20 ?a . ?a rdf:type ontology:Q56061 }
Berlin
Berlin is the place of death of that person
Berlin
action filter_type
action find
entity Jean Paul Ertel
relation place of death
type administrative territorial entity
['male', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Jean_Paul_Ertel property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q880894
P27
Q1048835
USER
How many political territories are the countries of citizenship of Jean Paul Ertel ?
(Q880894,P27,c(Q1048835))
action count
action filter_type
action find
entity Q880894
relation P27
type Q1048835
['Q880894', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { resource:Q880894 property:P27 ?r . ?r rdf:type ontology:Q1048835 }
Jean Paul Ertel
action count
action filter_type
action find
entity Jean Paul Ertel
relation country of citizenship
type political territorial entity
['Jean Paul Ertel', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { resource:Jean_Paul_Ertel property:country_of_citizenship ?r . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q183
(Q880894,P27,c(Q1048835))
action count
action filter_type
action find
entity Q880894
relation P27
type Q1048835
[ANSWER]
['Q880894', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { resource:Q880894 property:P27 ?r . ?r rdf:type ontology:Q1048835 }
Germany
1
action count
action filter_type
action find
entity Jean Paul Ertel
relation country of citizenship
type political territorial entity
['Jean Paul Ertel', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { resource:Jean_Paul_Ertel property:country_of_citizenship ?r . ?r rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1689767
Q1048835
USER
And also tell me about Jiří Ehrenberger?
(Q1689767,P27,c(Q1048835))
action count
action filter_type
action find
entity Q1689767
relation P27
type Q1048835
['Q1689767', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Q1689767 property:P27 ?k . ?k rdf:type ontology:Q1048835 }
Jiří Ehrenberger
action count
action filter_type
action find
entity Jiří Ehrenberger
relation country of citizenship
type political territorial entity
['Jiří Ehrenberger', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Jiří_Ehrenberger property:country_of_citizenship ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
(Q1689767,P27,c(Q1048835))
action count
action filter_type
action find
entity Q1689767
relation P27
type Q1048835
[ANSWER]
['Q1689767', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Q1689767 property:P27 ?k . ?k rdf:type ontology:Q1048835 }
1
action count
action filter_type
action find
entity Jiří Ehrenberger
relation country of citizenship
type political territorial entity
['Jiří Ehrenberger', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Jiří_Ehrenberger property:country_of_citizenship ?k . ?k rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P47
Q15617994
USER
Which administrative territories have an adjacent border with Berlin ?
(c(Q15617994),P47,Q64)
action filter_type
action find
entity Q64
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q64']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q64 property:P47 ?w }
Berlin
action filter_type
action find
entity Berlin
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Berlin']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Berlin property:shares_border_with ?w }
[]
designation for an administrative territorial entity
Q640426 Q104192
SYSTEM
Stahnsdorf, Kleinmachnow
Q640426 Q104192
(c(Q15617994),P47,Q64)
action filter_type
action find
entity Q64
relation P47
type Q15617994
[ANSWERS] have an adjacent border with Berlin
[{'concept': 'Q15617994'}, 'P47', 'Q64']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q64 property:P47 ?w }
Stahnsdorf Kleinmachnow
Stahnsdorf and Kleinmachnow have an adjacent border with Berlin
Stahnsdorf Kleinmachnow
action filter_type
action find
entity Berlin
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Berlin']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Berlin property:shares_border_with ?w }
[]
Clarification
Simple Question|Single Entity|Indirect
Q640426
P937
Q502895
USER
Who has that administrative territory as their work location ?
(c(Q502895),P937,Q640426)
action filter_type
action find_reverse
entity Q640426
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q640426']
SELECT DISTINCT ?y WHERE { ?y property:P937 resource:Q640426 . ?y rdf:type ontology:Q502895 }
Stahnsdorf
action filter_type
action find_reverse
entity Stahnsdorf
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Stahnsdorf']
SELECT DISTINCT ?y WHERE { ?y property:work_location resource:Stahnsdorf . ?y rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q640426
SYSTEM
Did you mean Stahnsdorf ?
Q640426 Q104192
(c(Q502895),P937,Q640426) (c(Q502895),P937,Q104192)
[ANSWER]
[{'concept': 'Q502895'}, 'P937', 'Q640426'] [{'concept': 'Q502895'}, 'P937', 'Q104192']
SELECT DISTINCT ?y WHERE { ?y property:P937 resource:Q640426 . ?y rdf:type ontology:Q502895 }
Stahnsdorf Kleinmachnow
Did you mean Stahnsdorf ?
Stahnsdorf
[{'concept': 'common name'}, 'work location', 'Stahnsdorf'] [{'concept': 'common name'}, 'work location', 'Kleinmachnow']
SELECT DISTINCT ?y WHERE { ?y property:work_location resource:Stahnsdorf . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P937,Q640426)
[{'concept': 'Q502895'}, 'P937', 'Q640426']
[{'concept': 'common name'}, 'work location', 'Stahnsdorf']
[]
Q1490354
SYSTEM
Gabriele Herzog
Q1490354
(c(Q502895),P937,Q640426)
action filter_type
action find_reverse
entity Q640426
relation P937
type Q502895
[ANSWER] has that administrative territory as their work location
[{'concept': 'Q502895'}, 'P937', 'Q640426']
SELECT DISTINCT ?y WHERE { ?y property:P937 resource:Q640426 . ?y rdf:type ontology:Q502895 }
Gabriele Herzog
Gabriele Herzog has that administrative territory as their work location
Gabriele Herzog
action filter_type
action find_reverse
entity Stahnsdorf
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Stahnsdorf']
SELECT DISTINCT ?y WHERE { ?y property:work_location resource:Stahnsdorf . ?y rdf:type ontology:common_name }
[]