Simple Question (Direct)
Simple Question
Q1577416
P39
Q12737077
USER
Which occupation was a position for which Hans-Joachim Mertens was appointed ?
(Q1577416,P39,c(Q12737077))
action filter_type
action find
entity Q1577416
relation P39
type Q12737077
['Q1577416', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q1577416 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
Hans-Joachim Mertens
action filter_type
action find
entity Hans-Joachim Mertens
relation position held
type occupation
['Hans-Joachim Mertens', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Hans-Joachim_Mertens property:position_held ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q1577416,P39,c(Q12737077))
action filter_type
action find
entity Q1577416
relation P39
type Q12737077
The [ANSWER] was a position for which Hans-Joachim Mertens was appointed
['Q1577416', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q1577416 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
mayor
The mayor was a position for which Hans-Joachim Mertens was appointed
mayor
action filter_type
action find
entity Hans-Joachim Mertens
relation position held
type occupation
['Hans-Joachim Mertens', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Hans-Joachim_Mertens property:position_held ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30185
P106
Q502895
USER
Who have a job as that occupation ?
(c(Q502895),P106,Q30185)
action filter_type
action find_reverse
entity Q30185
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q30185']
SELECT DISTINCT ?w WHERE { ?w property:P106 resource:Q30185 . ?w rdf:type ontology:Q502895 }
mayor
action filter_type
action find_reverse
entity mayor
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'mayor']
SELECT DISTINCT ?w WHERE { ?w property:occupation resource:mayor . ?w rdf:type ontology:common_name }
[]
common name
Q2651847 Q4532603 Q27665572
SYSTEM
Ramón Labayen Sansinenea, Heo Nam-sik, Dominique-François Sébire
Q4532603 Q5481949 Q20054192 Q27665572 Q12260703 Q2651847 Q12266475
(c(Q502895),P106,Q30185)
action filter_type
action find_reverse
entity Q30185
relation P106
type Q502895
[ANSWERS] have a job as that occupation
[{'concept': 'Q502895'}, 'P106', 'Q30185']
SELECT DISTINCT ?w WHERE { ?w property:P106 resource:Q30185 . ?w rdf:type ontology:Q502895 }
Heo Nam-sik Francis Moon Tomáš Hájek Dominique-François Sébire Jose Maria Soroa Ramón Labayen Sansinenea Ramón Fernandez Garaialde
Ramón Labayen Sansinenea, Heo Nam-sik and Dominique-François Sébire have a job as that occupation
Ramón Labayen Sansinenea Heo Nam-sik Dominique-François Sébire
action filter_type
action find_reverse
entity mayor
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'mayor']
SELECT DISTINCT ?w WHERE { ?w property:occupation resource:mayor . ?w rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q27665572
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q27665572,P27,c(Q15617994))
action filter_type
action find
entity Q27665572
relation P27
type Q15617994
['Q27665572', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q27665572 property:P27 ?x }
Dominique-François Sébire
action filter_type
action find
entity Dominique-François Sébire
relation country of citizenship
type designation for an administrative territorial entity
['Dominique-François Sébire', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Dominique-François_Sébire property:country_of_citizenship ?x }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q4532603
SYSTEM
Did you mean Heo Nam-sik ?
Q2651847 Q4532603 Q27665572
(Q2651847,P27,c(Q15617994)) (Q4532603,P27,c(Q15617994)) (Q27665572,P27,c(Q15617994))
[ANSWER]
['Q2651847', 'P27', {'concept': 'Q15617994'}] ['Q4532603', 'P27', {'concept': 'Q15617994'}] ['Q27665572', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q27665572 property:P27 ?x }
Ramón Labayen Sansinenea Heo Nam-sik Dominique-François Sébire
Did you mean Heo Nam-sik ?
Heo Nam-sik
['Ramón Labayen Sansinenea', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Heo Nam-sik', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Dominique-François Sébire', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Dominique-François_Sébire property:country_of_citizenship ?x }
[]
Simple Question (Coreferenced)
USER
No, I meant Dominique-François Sébire. Could you tell me the answer for that?
(Q27665572,P27,c(Q15617994))
Q27665572
['Q27665572', 'P27', {'concept': 'Q15617994'}]
['Dominique-François Sébire', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q27665572,P27,c(Q15617994))
action filter_type
action find
entity Q27665572
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q27665572', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q27665572 property:P27 ?x }
France
That person belongs to the France
France
action filter_type
action find
entity Dominique-François Sébire
relation country of citizenship
type designation for an administrative territorial entity
['Dominique-François Sébire', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Dominique-François_Sébire property:country_of_citizenship ?x }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q142 Q717 Q2171139
P47
Q15617994
USER
Does that administrative territory have an adjacent border with Venezuela and Choseley ?
(Q142,P47,Q717) (Q142,P47,Q2171139)
action is_in
entity Q142
action intersection
action find_reverse
entity Q717
relation P47
action find_reverse
entity Q2171139
relation P47
['Q142', 'P47', 'Q717'] ['Q142', 'P47', 'Q2171139']
ASK WHERE { resource:Q142 property:P47 resource:Q2171139 . resource:Q142 property:P47 resource:Q717 }
France Venezuela Choseley
action is_in
entity France
action intersection
action find_reverse
entity Venezuela
relation shares border with
action find_reverse
entity Choseley
relation shares border with
['France', 'shares border with', 'Venezuela'] ['France', 'shares border with', 'Choseley']
ASK WHERE { resource:France property:shares_border_with resource:Choseley . resource:France property:shares_border_with resource:Venezuela }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q142,P47,Q717) (Q142,P47,Q2171139)
action is_in
entity Q142
action intersection
action find_reverse
entity Q717
relation P47
action find_reverse
entity Q2171139
relation P47
[ANSWER]
['Q142', 'P47', 'Q717'] ['Q142', 'P47', 'Q2171139']
ASK WHERE { resource:Q142 property:P47 resource:Q2171139 . resource:Q142 property:P47 resource:Q717 }
YES and NO respectively
action is_in
entity France
action intersection
action find_reverse
entity Venezuela
relation shares border with
action find_reverse
entity Choseley
relation shares border with
['France', 'shares border with', 'Venezuela'] ['France', 'shares border with', 'Choseley']
ASK WHERE { resource:France property:shares_border_with resource:Choseley . resource:France property:shares_border_with resource:Venezuela }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q18941264 Q30185
P39
Q502895
USER
Which people held the position of mayor and Member of the Senate of the Parliament of the Czech Republic ?
AND((c(Q502895),P39,Q30185), (c(Q502895),P39,Q18941264))
action filter_type
action intersection
action find_reverse
entity Q30185
relation P39
action find_reverse
entity Q18941264
relation P39
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P39', 'Q30185'], [{'concept': 'Q502895'}, 'P39', 'Q18941264']]}
SELECT DISTINCT ?p WHERE { ?p property:P39 resource:Q30185 . ?p property:P39 resource:Q18941264 . ?p rdf:type ontology:Q502895 }
Member of the Senate of the Parliament of the Czech Republic mayor
action filter_type
action intersection
action find_reverse
entity mayor
relation position held
action find_reverse
entity Member of the Senate of the Parliament of the Czech Republic
relation position held
type common name
{'AND': [[{'concept': 'common name'}, 'position held', 'mayor'], [{'concept': 'common name'}, 'position held', 'Member of the Senate of the Parliament of the Czech Republic']]}
SELECT DISTINCT ?p WHERE { ?p property:position_held resource:mayor . ?p property:position_held resource:Member_of_the_Senate_of_the_Parliament_of_the_Czech_Republic . ?p rdf:type ontology:common_name }
[]
common name
Q12044066 Q12044095 Q12059227
SYSTEM
Pavel Heřman, Pavel Janata, Tomáš Jirsa
Q12044066 Q12044095 Q12059227
AND((c(Q502895),P39,Q30185), (c(Q502895),P39,Q18941264))
action filter_type
action intersection
action find_reverse
entity Q30185
relation P39
action find_reverse
entity Q18941264
relation P39
type Q502895
[ANSWERS] held the position of mayor and Member of the Senate of the Parliament of the Czech Republic
{'AND': [[{'concept': 'Q502895'}, 'P39', 'Q30185'], [{'concept': 'Q502895'}, 'P39', 'Q18941264']]}
SELECT DISTINCT ?p WHERE { ?p property:P39 resource:Q30185 . ?p property:P39 resource:Q18941264 . ?p rdf:type ontology:Q502895 }
Pavel Heřman Pavel Janata Tomáš Jirsa
Pavel Heřman, Pavel Janata and Tomáš Jirsa held the position of mayor and Member of the Senate of the Parliament of the Czech Republic
Pavel Heřman Pavel Janata Tomáš Jirsa
action filter_type
action intersection
action find_reverse
entity mayor
relation position held
action find_reverse
entity Member of the Senate of the Parliament of the Czech Republic
relation position held
type common name
{'AND': [[{'concept': 'common name'}, 'position held', 'mayor'], [{'concept': 'common name'}, 'position held', 'Member of the Senate of the Parliament of the Czech Republic']]}
SELECT DISTINCT ?p WHERE { ?p property:position_held resource:mayor . ?p property:position_held resource:Member_of_the_Senate_of_the_Parliament_of_the_Czech_Republic . ?p rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q12044066
P21
Q290
USER
What is the sex of that person ?
(Q12044066,P21,c(Q290))
action filter_type
action find
entity Q12044066
relation P21
type Q290
['Q12044066', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q12044066 property:P21 ?w . ?w rdf:type ontology:Q290 }
Pavel Heřman
action filter_type
action find
entity Pavel Heřman
relation gender
type sex
['Pavel Heřman', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Pavel_Heřman property:gender ?w . ?w rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q12059227
SYSTEM
Did you mean Tomáš Jirsa ?
Q12044066 Q12044095 Q12059227
(Q12044066,P21,c(Q290)) (Q12044095,P21,c(Q290)) (Q12059227,P21,c(Q290))
[ANSWER]
['Q12044066', 'P21', {'concept': 'Q290'}] ['Q12044095', 'P21', {'concept': 'Q290'}] ['Q12059227', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q12044066 property:P21 ?w . ?w rdf:type ontology:Q290 }
Pavel Heřman Pavel Janata Tomáš Jirsa
Did you mean Tomáš Jirsa ?
Tomáš Jirsa
['Pavel Heřman', 'gender', {'concept': 'sex'}] ['Pavel Janata', 'gender', {'concept': 'sex'}] ['Tomáš Jirsa', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Pavel_Heřman property:gender ?w . ?w rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
No, I meant Pavel Heřman. Could you tell me the answer for that?
(Q12044066,P21,c(Q290))
Q12044066
['Q12044066', 'P21', {'concept': 'Q290'}]
['Pavel Heřman', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q12044066,P21,c(Q290))
action filter_type
action find
entity Q12044066
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q12044066', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q12044066 property:P21 ?w . ?w rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Pavel Heřman
relation gender
type sex
['Pavel Heřman', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Pavel_Heřman property:gender ?w . ?w rdf:type ontology:sex }
[]