Simple Question (Direct)
Simple Question
Q116022
P1412
Q34770
USER
Which language can Jean Leclerc understand ?
(Q116022,P1412,c(Q34770))
action filter_type
action find
entity Q116022
relation P1412
type Q34770
['Q116022', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q34770 . resource:Q116022 property:P1412 ?w }
Jean Leclerc
action filter_type
action find
entity Jean Leclerc
relation languages spoken, written or signed
type language
['Jean Leclerc', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:language . resource:Jean_Leclerc property:languages_spoken,_written_or_signed ?w }
[]
language
Q397
SYSTEM
Latin
Q397
(Q116022,P1412,c(Q34770))
action filter_type
action find
entity Q116022
relation P1412
type Q34770
Jean Leclerc can understand the [ANSWER]
['Q116022', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q34770 . resource:Q116022 property:P1412 ?w }
Latin
Jean Leclerc can understand the Latin
Latin
action filter_type
action find
entity Jean Leclerc
relation languages spoken, written or signed
type language
['Jean Leclerc', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:language . resource:Jean_Leclerc property:languages_spoken,_written_or_signed ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q116022
P20
Q56061
USER
Where did that person die ?
(Q397,P20,c(Q56061))
action filter_type
action find
entity Q116022
relation P20
type Q56061
['Q397', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q116022 property:P20 ?h . ?h rdf:type ontology:Q56061 }
Jean Leclerc
action filter_type
action find
entity Jean Leclerc
relation place of death
type administrative territorial entity
['Latin', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Jean_Leclerc property:place_of_death ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q727
SYSTEM
Amsterdam
Q727
(Q397,P20,c(Q56061))
action filter_type
action find
entity Q116022
relation P20
type Q56061
That person died in [ANSWER]
['Q397', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q116022 property:P20 ?h . ?h rdf:type ontology:Q56061 }
Amsterdam
That person died in Amsterdam
Amsterdam
action filter_type
action find
entity Jean Leclerc
relation place of death
type administrative territorial entity
['Latin', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Jean_Leclerc property:place_of_death ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q116022
P39
Q12737077
USER
What was the position held by that person ?
(Q727,P39,c(Q12737077))
action filter_type
action find
entity Q116022
relation P39
type Q12737077
['Q727', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q116022 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Jean Leclerc
action filter_type
action find
entity Jean Leclerc
relation position held
type occupation
['Amsterdam', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Jean_Leclerc property:position_held ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q152002
SYSTEM
pastor
Q152002
(Q727,P39,c(Q12737077))
action filter_type
action find
entity Q116022
relation P39
type Q12737077
The position held by that person was the [ANSWER]
['Q727', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q116022 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
pastor
The position held by that person was the pastor
pastor
action filter_type
action find
entity Jean Leclerc
relation position held
type occupation
['Amsterdam', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Jean_Leclerc property:position_held ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q152002
P138
Q486972
USER
Which human settlement has that occupation as its toponym ?
(c(Q486972),P138,Q152002)
action filter_type
action find_reverse
entity Q152002
relation P138
type Q486972
[{'concept': 'Q486972'}, 'P138', 'Q152002']
SELECT DISTINCT ?i WHERE { ?i property:P138 resource:Q152002 . ?i rdf:type ontology:Q486972 }
pastor
action filter_type
action find_reverse
entity pastor
relation named after
type human settlement
[{'concept': 'human settlement'}, 'named after', 'pastor']
SELECT DISTINCT ?i WHERE { ?i property:named_after resource:pastor . ?i rdf:type ontology:human_settlement }
[]
human settlement
Q1616604
SYSTEM
Papenholz
Q1616604
(c(Q486972),P138,Q152002)
action filter_type
action find_reverse
entity Q152002
relation P138
type Q486972
[ANSWER] has that occupation as its toponym
[{'concept': 'Q486972'}, 'P138', 'Q152002']
SELECT DISTINCT ?i WHERE { ?i property:P138 resource:Q152002 . ?i rdf:type ontology:Q486972 }
Papenholz
Papenholz has that occupation as its toponym
Papenholz
action filter_type
action find_reverse
entity pastor
relation named after
type human settlement
[{'concept': 'human settlement'}, 'named after', 'pastor']
SELECT DISTINCT ?i WHERE { ?i property:named_after resource:pastor . ?i rdf:type ontology:human_settlement }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q948969 Q116022
P27
Q15617994
USER
Which administrative territories are Jean Leclerc or Mohamed Sobhy an inhabitant of ?
OR((Q116022,P27,c(Q15617994)), (Q948969,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q116022
relation P27
action find
entity Q948969
relation P27
type Q15617994
{'OR': [['Q116022', 'P27', {'concept': 'Q15617994'}], ['Q948969', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q116022 property:P27 ?a } UNION { resource:Q948969 property:P27 ?a } } . ?a rdf:type ontology:Q15617994 }
Mohamed Sobhy Jean Leclerc
action filter_type
action union
action find
entity Jean Leclerc
relation country of citizenship
action find
entity Mohamed Sobhy
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jean Leclerc', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mohamed Sobhy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Jean_Leclerc property:country_of_citizenship ?a } UNION { resource:Mohamed_Sobhy property:country_of_citizenship ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39 Q79
SYSTEM
Switzerland, Egypt
Q39 Q79
OR((Q116022,P27,c(Q15617994)), (Q948969,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q116022
relation P27
action find
entity Q948969
relation P27
type Q15617994
[ANSWERS] are Jean Leclerc or Mohamed Sobhy an inhabitant of
{'OR': [['Q116022', 'P27', {'concept': 'Q15617994'}], ['Q948969', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q116022 property:P27 ?a } UNION { resource:Q948969 property:P27 ?a } } . ?a rdf:type ontology:Q15617994 }
Switzerland Egypt
Switzerland and Egypt are Jean Leclerc or Mohamed Sobhy an inhabitant of
Switzerland Egypt
action filter_type
action union
action find
entity Jean Leclerc
relation country of citizenship
action find
entity Mohamed Sobhy
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jean Leclerc', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mohamed Sobhy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Jean_Leclerc property:country_of_citizenship ?a } UNION { resource:Mohamed_Sobhy property:country_of_citizenship ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q13843
P530
Q1048835
USER
Do Lanao del Sur have ambassadorial relations with those administrative territories ?
(Q13843,P530,Q39) (Q13843,P530,Q79)
action is_in
entity prev_answer
action find
entity Q13843
relation P530
['Q13843', 'P530', 'Q39'] ['Q13843', 'P530', 'Q79']
ASK WHERE { VALUES ( ?x ) { ( resource:Q39 ) ( resource:Q79 ) } . resource:Q13843 property:P530 ?x }
Lanao del Sur
action is_in
entity prev_answer
action find
entity Lanao del Sur
relation diplomatic relation
['Lanao del Sur', 'diplomatic relation', 'Switzerland'] ['Lanao del Sur', 'diplomatic relation', 'Egypt']
ASK WHERE { VALUES ( ?x ) { ( resource:Switzerland ) ( resource:Egypt ) } . resource:Lanao_del_Sur property:diplomatic_relation ?x }
[]
political territorial entity
SYSTEM
NO
(Q13843,P530,Q39) (Q13843,P530,Q79)
action is_in
entity prev_answer
action find
entity Q13843
relation P530
[ANSWER]
['Q13843', 'P530', 'Q39'] ['Q13843', 'P530', 'Q79']
ASK WHERE { VALUES ( ?x ) { ( resource:Q39 ) ( resource:Q79 ) } . resource:Q13843 property:P530 ?x }
No
action is_in
entity prev_answer
action find
entity Lanao del Sur
relation diplomatic relation
['Lanao del Sur', 'diplomatic relation', 'Switzerland'] ['Lanao del Sur', 'diplomatic relation', 'Egypt']
ASK WHERE { VALUES ( ?x ) { ( resource:Switzerland ) ( resource:Egypt ) } . resource:Lanao_del_Sur property:diplomatic_relation ?x }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q39 Q552924
P530
Q15617994
USER
Does Fredeburg have diplomatic relationships with Switzerland ?
(Q39,P530,Q552924)
action is_in
entity Q552924
action find
entity Q39
relation P530
['Q39', 'P530', 'Q552924']
ASK WHERE { resource:Q39 property:P530 resource:Q552924 }
Switzerland Fredeburg
action is_in
entity Fredeburg
action find
entity Switzerland
relation diplomatic relation
['Switzerland', 'diplomatic relation', 'Fredeburg']
ASK WHERE { resource:Switzerland property:diplomatic_relation resource:Fredeburg }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q39,P530,Q552924)
action is_in
entity Q552924
action find
entity Q39
relation P530
[ANSWER]
['Q39', 'P530', 'Q552924']
ASK WHERE { resource:Q39 property:P530 resource:Q552924 }
No
action is_in
entity Fredeburg
action find
entity Switzerland
relation diplomatic relation
['Switzerland', 'diplomatic relation', 'Fredeburg']
ASK WHERE { resource:Switzerland property:diplomatic_relation resource:Fredeburg }
[]