Simple Question (Direct)
Simple Question
Q1545110
P19
Q5119
USER
Which capital is the birthplace of Gregor Lamparter ?
(Q1545110,P19,c(Q5119))
action filter_type
action find
entity Q1545110
relation P19
type Q5119
['Q1545110', 'P19', {'concept': 'Q5119'}]
SELECT DISTINCT ?o WHERE { resource:Q1545110 property:P19 ?o . ?o rdf:type ontology:Q5119 }
Gregor Lamparter
action filter_type
action find
entity Gregor Lamparter
relation place of birth
type capital
['Gregor Lamparter', 'place of birth', {'concept': 'capital'}]
SELECT DISTINCT ?o WHERE { resource:Gregor_Lamparter property:place_of_birth ?o . ?o rdf:type ontology:capital }
[]
capital
Q16069
SYSTEM
Biberach an der Riss
Q16069
(Q1545110,P19,c(Q5119))
action filter_type
action find
entity Q1545110
relation P19
type Q5119
[ANSWER] is the birthplace of Gregor Lamparter
['Q1545110', 'P19', {'concept': 'Q5119'}]
SELECT DISTINCT ?o WHERE { resource:Q1545110 property:P19 ?o . ?o rdf:type ontology:Q5119 }
Biberach an der Riss
Biberach an der Riss is the birthplace of Gregor Lamparter
Biberach an der Riss
action filter_type
action find
entity Gregor Lamparter
relation place of birth
type capital
['Gregor Lamparter', 'place of birth', {'concept': 'capital'}]
SELECT DISTINCT ?o WHERE { resource:Gregor_Lamparter property:place_of_birth ?o . ?o rdf:type ontology:capital }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1545110
P108
Q3918
USER
Which university is the employer of Gregor Lamparter ?
(Q1545110,P108,c(Q3918))
action filter_type
action find
entity Q1545110
relation P108
type Q3918
['Q1545110', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?e WHERE { resource:Q1545110 property:P108 ?e . ?e rdf:type ontology:Q3918 }
Gregor Lamparter
action filter_type
action find
entity Gregor Lamparter
relation employer
type university
['Gregor Lamparter', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?e WHERE { resource:Gregor_Lamparter property:employer ?e . ?e rdf:type ontology:university }
[]
university
Q153978
SYSTEM
University of Tübingen
Q153978
(Q1545110,P108,c(Q3918))
action filter_type
action find
entity Q1545110
relation P108
type Q3918
[ANSWER] is the employer of Gregor Lamparter
['Q1545110', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?e WHERE { resource:Q1545110 property:P108 ?e . ?e rdf:type ontology:Q3918 }
University of Tübingen
University of Tübingen is the employer of Gregor Lamparter
University of Tübingen
action filter_type
action find
entity Gregor Lamparter
relation employer
type university
['Gregor Lamparter', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?e WHERE { resource:Gregor_Lamparter property:employer ?e . ?e rdf:type ontology:university }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1545110
P27
Q1048835
USER
Which political territory does that person belong to ?
(Q153978,P27,c(Q1048835))
action filter_type
action find
entity Q1545110
relation P27
type Q1048835
['Q153978', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1048835 . resource:Q1545110 property:P27 ?b }
Gregor Lamparter
action filter_type
action find
entity Gregor Lamparter
relation country of citizenship
type political territorial entity
['University of Tübingen', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:political_territorial_entity . resource:Gregor_Lamparter property:country_of_citizenship ?b }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q153978,P27,c(Q1048835))
action filter_type
action find
entity Q1545110
relation P27
type Q1048835
That person belongs to the [ANSWER]
['Q153978', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1048835 . resource:Q1545110 property:P27 ?b }
Germany
That person belongs to the Germany
Germany
action filter_type
action find
entity Gregor Lamparter
relation country of citizenship
type political territorial entity
['University of Tübingen', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:political_territorial_entity . resource:Gregor_Lamparter property:country_of_citizenship ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1545110
P106
Q28640
USER
What does that person do for a living ?
(Q183,P106,c(Q28640))
action filter_type
action find
entity Q1545110
relation P106
type Q28640
['Q183', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?s WHERE { resource:Q1545110 property:P106 ?s . ?s rdf:type ontology:Q28640 }
Gregor Lamparter
action filter_type
action find
entity Gregor Lamparter
relation occupation
type profession
['Germany', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?s WHERE { resource:Gregor_Lamparter property:occupation ?s . ?s rdf:type ontology:profession }
[]
profession
Q185351
SYSTEM
jurist
Q185351
(Q183,P106,c(Q28640))
action filter_type
action find
entity Q1545110
relation P106
type Q28640
That person does a [ANSWER] for a living
['Q183', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?s WHERE { resource:Q1545110 property:P106 ?s . ?s rdf:type ontology:Q28640 }
jurist
That person does a jurist for a living
jurist
action filter_type
action find
entity Gregor Lamparter
relation occupation
type profession
['Germany', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?s WHERE { resource:Gregor_Lamparter property:occupation ?s . ?s rdf:type ontology:profession }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18715776 Q1545110
P20
Q56061
USER
Which administrative territories did Gregor Lamparter or George Kell die ?
OR((Q1545110,P20,c(Q56061)), (Q18715776,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1545110
relation P20
action find
entity Q18715776
relation P20
type Q56061
{'OR': [['Q1545110', 'P20', {'concept': 'Q56061'}], ['Q18715776', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q1545110 property:P20 ?o } UNION { resource:Q18715776 property:P20 ?o } } . ?o rdf:type ontology:Q56061 }
George Kell Gregor Lamparter
action filter_type
action union
action find
entity Gregor Lamparter
relation place of death
action find
entity George Kell
relation place of death
type administrative territorial entity
{'OR': [['Gregor Lamparter', 'place of death', {'concept': 'administrative territorial entity'}], ['George Kell', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Gregor_Lamparter property:place_of_death ?o } UNION { resource:George_Kell property:place_of_death ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q42448 Q2090
SYSTEM
Sheffield, Nuremberg
Q42448 Q2090
OR((Q1545110,P20,c(Q56061)), (Q18715776,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1545110
relation P20
action find
entity Q18715776
relation P20
type Q56061
Gregor Lamparter or George Kell died in [ANSWERS]
{'OR': [['Q1545110', 'P20', {'concept': 'Q56061'}], ['Q18715776', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q1545110 property:P20 ?o } UNION { resource:Q18715776 property:P20 ?o } } . ?o rdf:type ontology:Q56061 }
Sheffield Nuremberg
Gregor Lamparter or George Kell died in Sheffield and Nuremberg
Sheffield Nuremberg
action filter_type
action union
action find
entity Gregor Lamparter
relation place of death
action find
entity George Kell
relation place of death
type administrative territorial entity
{'OR': [['Gregor Lamparter', 'place of death', {'concept': 'administrative territorial entity'}], ['George Kell', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Gregor_Lamparter property:place_of_death ?o } UNION { resource:George_Kell property:place_of_death ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2090
P417
Q502895
USER
Who is the patron saint of that administrative territory ?
(Q2090,P417,c(Q502895))
action filter_type
action find
entity Q2090
relation P417
type Q502895
['Q2090', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q2090 property:P417 ?a . ?a rdf:type ontology:Q502895 }
Nuremberg
action filter_type
action find
entity Nuremberg
relation patron saint
type common name
['Nuremberg', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Nuremberg property:patron_saint ?a . ?a rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q42448
SYSTEM
Did you mean Sheffield ?
Q42448 Q2090
(Q42448,P417,c(Q502895)) (Q2090,P417,c(Q502895))
[ANSWER]
['Q42448', 'P417', {'concept': 'Q502895'}] ['Q2090', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q2090 property:P417 ?a . ?a rdf:type ontology:Q502895 }
Sheffield Nuremberg
Did you mean Sheffield ?
Sheffield
['Sheffield', 'patron saint', {'concept': 'common name'}] ['Nuremberg', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Nuremberg property:patron_saint ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Nuremberg. Could you tell me the answer for that?
(Q2090,P417,c(Q502895))
Q2090
['Q2090', 'P417', {'concept': 'Q502895'}]
['Nuremberg', 'patron saint', {'concept': 'common name'}]
[]
Q516729
SYSTEM
Sebaldus
Q516729
(Q2090,P417,c(Q502895))
action filter_type
action find
entity Q2090
relation P417
type Q502895
The patron saint of that administrative territory is Saint [ANSWER]
['Q2090', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q2090 property:P417 ?a . ?a rdf:type ontology:Q502895 }
Sebaldus
The patron saint of that administrative territory is Saint Sebaldus
Sebaldus
action filter_type
action find
entity Nuremberg
relation patron saint
type common name
['Nuremberg', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Nuremberg property:patron_saint ?a . ?a rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q516729 Q183
P27
Q1048835
USER
Is Germany the native country of that person ?
(Q516729,P27,Q183)
action is_in
entity Q183
action find
entity Q516729
relation P27
['Q516729', 'P27', 'Q183']
ASK WHERE { resource:Q516729 property:P27 resource:Q183 }
Sebaldus Germany
action is_in
entity Germany
action find
entity Sebaldus
relation country of citizenship
['Sebaldus', 'country of citizenship', 'Germany']
ASK WHERE { resource:Sebaldus property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q516729,P27,Q183)
action is_in
entity Q183
action find
entity Q516729
relation P27
[ANSWER]
['Q516729', 'P27', 'Q183']
ASK WHERE { resource:Q516729 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Sebaldus
relation country of citizenship
['Sebaldus', 'country of citizenship', 'Germany']
ASK WHERE { resource:Sebaldus property:country_of_citizenship resource:Germany }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1313369 Q183
P47 P530
Q1048835
USER
Which political territories have diplomatic relationships with Germany or share border with Guarromán ?
OR((Q183,P530,c(Q1048835)), (Q1313369,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q1313369
relation P47
type Q1048835
{'OR': [['Q183', 'P530', {'concept': 'Q1048835'}], ['Q1313369', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q183 property:P530 ?z } UNION { resource:Q1313369 property:P47 ?z } } . ?z rdf:type ontology:Q1048835 }
Guarromán Germany
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity Guarromán
relation shares border with
type political territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Guarromán', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Germany property:diplomatic_relation ?z } UNION { resource:Guarromán property:shares_border_with ?z } } . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q1635984 Q587590 Q695456 Q40 Q35 Q1000 Q16 Q664 Q281272
SYSTEM
Some of them are Australia, Carboneros, Baños de la Encina, Bailén, Austria, Denmark, Gabon, Canada, New Zealand, Linares
Q1635984 Q1000 Q35 Q40 Q1641608 Q695456 Q408 Q587590 Q281272 Q16 Q664
OR((Q183,P530,c(Q1048835)), (Q1313369,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q1313369
relation P47
type Q1048835
[ANSWERS] have diplomatic relationships with Germany or share border with Guarromán
{'OR': [['Q183', 'P530', {'concept': 'Q1048835'}], ['Q1313369', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q183 property:P530 ?z } UNION { resource:Q1313369 property:P47 ?z } } . ?z rdf:type ontology:Q1048835 }
Carboneros Gabon Denmark Austria Villanueva de la Reina Bailén Australia Baños de la Encina Linares Canada New Zealand
Australia, Carboneros, Baños de la Encina, Bailén, Austria, Denmark, Gabon, Canada, New Zealand and Linares have diplomatic relationships with Germany or share border with Guarromán
Australia Carboneros Baños de la Encina Bailén Austria Denmark Gabon Canada New Zealand Linares
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity Guarromán
relation shares border with
type political territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Guarromán', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Germany property:diplomatic_relation ?z } UNION { resource:Guarromán property:shares_border_with ?z } } . ?z rdf:type ontology:political_territorial_entity }
[]