Simple Question (Direct)
Simple Question
Q1695169
P937
Q56061
USER
Which administrative territory is the work location of Johann Koch ?
(Q1695169,P937,c(Q56061))
action filter_type
action find
entity Q1695169
relation P937
type Q56061
['Q1695169', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q1695169 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Johann Koch
action filter_type
action find
entity Johann Koch
relation work location
type administrative territorial entity
['Johann Koch', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Johann_Koch property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q1695169,P937,c(Q56061))
action filter_type
action find
entity Q1695169
relation P937
type Q56061
[ANSWER] is the work location of Johann Koch
['Q1695169', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q1695169 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Berlin
Berlin is the work location of Johann Koch
Berlin
action filter_type
action find
entity Johann Koch
relation work location
type administrative territorial entity
['Johann Koch', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Johann_Koch property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1695169
P102
Q7210356
USER
Which party does Johann Koch belong to ?
(Q1695169,P102,c(Q7210356))
action filter_type
action find
entity Q1695169
relation P102
type Q7210356
['Q1695169', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q1695169 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Johann Koch
action filter_type
action find
entity Johann Koch
relation member of political party
type political organization
['Johann Koch', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:Johann_Koch property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
political organization
Q157537
SYSTEM
Centre Party
Q157537
(Q1695169,P102,c(Q7210356))
action filter_type
action find
entity Q1695169
relation P102
type Q7210356
Johann Koch belongs to [ANSWER]
['Q1695169', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q1695169 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Centre Party
Johann Koch belongs to Centre Party
Centre Party
action filter_type
action find
entity Johann Koch
relation member of political party
type political organization
['Johann Koch', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:Johann_Koch property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1695169
P20
Q56061
USER
Where did Johann Koch die ?
(Q1695169,P20,c(Q56061))
action filter_type
action find
entity Q1695169
relation P20
type Q56061
['Q1695169', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q1695169 property:P20 ?m }
Johann Koch
action filter_type
action find
entity Johann Koch
relation place of death
type administrative territorial entity
['Johann Koch', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Johann_Koch property:place_of_death ?m }
[]
administrative territorial entity
Q2066
SYSTEM
Essen
Q2066
(Q1695169,P20,c(Q56061))
action filter_type
action find
entity Q1695169
relation P20
type Q56061
Johann Koch died in [ANSWER]
['Q1695169', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q1695169 property:P20 ?m }
Essen
Johann Koch died in Essen
Essen
action filter_type
action find
entity Johann Koch
relation place of death
type administrative territorial entity
['Johann Koch', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Johann_Koch property:place_of_death ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2066
P276
Q625994
USER
Which convention has its location as that administrative territory ?
(c(Q625994),P276,Q2066)
action filter_type
action find_reverse
entity Q2066
relation P276
type Q625994
[{'concept': 'Q625994'}, 'P276', 'Q2066']
SELECT DISTINCT ?v WHERE { ?v property:P276 resource:Q2066 . ?v rdf:type ontology:Q625994 }
Essen
action filter_type
action find_reverse
entity Essen
relation location
type convention
[{'concept': 'convention'}, 'location', 'Essen']
SELECT DISTINCT ?v WHERE { ?v property:location resource:Essen . ?v rdf:type ontology:convention }
[]
convention
Q24406469
SYSTEM
ELAG 1981 conference (4th)
Q24406469
(c(Q625994),P276,Q2066)
action filter_type
action find_reverse
entity Q2066
relation P276
type Q625994
[ANSWER] has its location as that administrative territory
[{'concept': 'Q625994'}, 'P276', 'Q2066']
SELECT DISTINCT ?v WHERE { ?v property:P276 resource:Q2066 . ?v rdf:type ontology:Q625994 }
ELAG 1981 conference (4th)
ELAG 1981 conference (4th) has its location as that administrative territory
ELAG 1981 conference (4th)
action filter_type
action find_reverse
entity Essen
relation location
type convention
[{'concept': 'convention'}, 'location', 'Essen']
SELECT DISTINCT ?v WHERE { ?v property:location resource:Essen . ?v rdf:type ontology:convention }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q24406469 Q2066
P276
Q56061
USER
Is Essen ELAG 1981 conference (4th) situated ?
(Q24406469,P276,Q2066)
action is_in
entity Q2066
action find
entity Q24406469
relation P276
['Q24406469', 'P276', 'Q2066']
ASK WHERE { resource:Q24406469 property:P276 resource:Q2066 }
ELAG 1981 conference (4th) Essen
action is_in
entity Essen
action find
entity ELAG 1981 conference (4th)
relation location
['ELAG 1981 conference (4th)', 'location', 'Essen']
ASK WHERE { resource:ELAG_1981_conference_(4th) property:location resource:Essen }
[]
administrative territorial entity
SYSTEM
YES
(Q24406469,P276,Q2066)
action is_in
entity Q2066
action find
entity Q24406469
relation P276
[ANSWER]
['Q24406469', 'P276', 'Q2066']
ASK WHERE { resource:Q24406469 property:P276 resource:Q2066 }
Yes
action is_in
entity Essen
action find
entity ELAG 1981 conference (4th)
relation location
['ELAG 1981 conference (4th)', 'location', 'Essen']
ASK WHERE { resource:ELAG_1981_conference_(4th) property:location resource:Essen }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q64 Q1651814
P17
Q1048835
USER
Is Berlin situated in Armenteros ?
(Q64,P17,Q1651814)
action is_in
entity Q1651814
action find
entity Q64
relation P17
['Q64', 'P17', 'Q1651814']
ASK WHERE { resource:Q64 property:P17 resource:Q1651814 }
Berlin Armenteros
action is_in
entity Armenteros
action find
entity Berlin
relation country
['Berlin', 'country', 'Armenteros']
ASK WHERE { resource:Berlin property:country resource:Armenteros }
[]
political territorial entity
SYSTEM
NO
(Q64,P17,Q1651814)
action is_in
entity Q1651814
action find
entity Q64
relation P17
[ANSWER]
['Q64', 'P17', 'Q1651814']
ASK WHERE { resource:Q64 property:P17 resource:Q1651814 }
No
action is_in
entity Armenteros
action find
entity Berlin
relation country
['Berlin', 'country', 'Armenteros']
ASK WHERE { resource:Berlin property:country resource:Armenteros }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1695169 Q183
P27
Q1048835
USER
Does Johann Koch belong to Germany ?
(Q1695169,P27,Q183)
action is_in
entity Q183
action find
entity Q1695169
relation P27
['Q1695169', 'P27', 'Q183']
ASK WHERE { resource:Q1695169 property:P27 resource:Q183 }
Johann Koch Germany
action is_in
entity Germany
action find
entity Johann Koch
relation country of citizenship
['Johann Koch', 'country of citizenship', 'Germany']
ASK WHERE { resource:Johann_Koch property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q1695169,P27,Q183)
action is_in
entity Q183
action find
entity Q1695169
relation P27
[ANSWER]
['Q1695169', 'P27', 'Q183']
ASK WHERE { resource:Q1695169 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Johann Koch
relation country of citizenship
['Johann Koch', 'country of citizenship', 'Germany']
ASK WHERE { resource:Johann_Koch property:country_of_citizenship resource:Germany }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q64 Q276248 Q11669694
P6
Q502895
USER
Is Louis Charles, Duke of Schleswig-Holstein-Sonderburg-Franzhagen and Yajūrō Takashima the head of the goverment of Berlin ?
(Q64,P6,Q276248) (Q64,P6,Q11669694)
action is_in
entity Q64
action intersection
action find_reverse
entity Q276248
relation P6
action find_reverse
entity Q11669694
relation P6
['Q64', 'P6', 'Q276248'] ['Q64', 'P6', 'Q11669694']
ASK WHERE { resource:Q64 property:P6 resource:Q276248 . resource:Q64 property:P6 resource:Q11669694 }
Berlin Louis Charles, Duke of Schleswig-Holstein-Sonderburg-Franzhagen Yajūrō Takashima
action is_in
entity Berlin
action intersection
action find_reverse
entity Louis Charles, Duke of Schleswig-Holstein-Sonderburg-Franzhagen
relation head of government
action find_reverse
entity Yajūrō Takashima
relation head of government
['Berlin', 'head of government', 'Louis Charles, Duke of Schleswig-Holstein-Sonderburg-Franzhagen'] ['Berlin', 'head of government', 'Yajūrō Takashima']
ASK WHERE { resource:Berlin property:head_of_government resource:Louis_Charles,_Duke_of_Schleswig-Holstein-Sonderburg-Franzhagen . resource:Berlin property:head_of_government resource:Yajūrō_Takashima }
[]
common name
SYSTEM
NO
(Q64,P6,Q276248) (Q64,P6,Q11669694)
action is_in
entity Q64
action intersection
action find_reverse
entity Q276248
relation P6
action find_reverse
entity Q11669694
relation P6
[ANSWER]
['Q64', 'P6', 'Q276248'] ['Q64', 'P6', 'Q11669694']
ASK WHERE { resource:Q64 property:P6 resource:Q276248 . resource:Q64 property:P6 resource:Q11669694 }
No
action is_in
entity Berlin
action intersection
action find_reverse
entity Louis Charles, Duke of Schleswig-Holstein-Sonderburg-Franzhagen
relation head of government
action find_reverse
entity Yajūrō Takashima
relation head of government
['Berlin', 'head of government', 'Louis Charles, Duke of Schleswig-Holstein-Sonderburg-Franzhagen'] ['Berlin', 'head of government', 'Yajūrō Takashima']
ASK WHERE { resource:Berlin property:head_of_government resource:Louis_Charles,_Duke_of_Schleswig-Holstein-Sonderburg-Franzhagen . resource:Berlin property:head_of_government resource:Yajūrō_Takashima }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q27270081 Q1695169
P27
Q1048835
USER
Which political territories do Johann Koch or Simon Gaines belong to ?
OR((Q1695169,P27,c(Q1048835)), (Q27270081,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1695169
relation P27
action find
entity Q27270081
relation P27
type Q1048835
{'OR': [['Q1695169', 'P27', {'concept': 'Q1048835'}], ['Q27270081', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1695169 property:P27 ?b } UNION { resource:Q27270081 property:P27 ?b } } . ?b rdf:type ontology:Q1048835 }
Simon Gaines Johann Koch
action filter_type
action union
action find
entity Johann Koch
relation country of citizenship
action find
entity Simon Gaines
relation country of citizenship
type political territorial entity
{'OR': [['Johann Koch', 'country of citizenship', {'concept': 'political territorial entity'}], ['Simon Gaines', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Johann_Koch property:country_of_citizenship ?b } UNION { resource:Simon_Gaines property:country_of_citizenship ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q9676
SYSTEM
Germany, Isle of Man
Q183 Q9676
OR((Q1695169,P27,c(Q1048835)), (Q27270081,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1695169
relation P27
action find
entity Q27270081
relation P27
type Q1048835
Johann Koch or Simon Gaines belong to Nazi [ANSWERS]
{'OR': [['Q1695169', 'P27', {'concept': 'Q1048835'}], ['Q27270081', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1695169 property:P27 ?b } UNION { resource:Q27270081 property:P27 ?b } } . ?b rdf:type ontology:Q1048835 }
Germany Isle of Man
Johann Koch or Simon Gaines belong to Nazi Germany and Isle of Man
Germany Isle of Man
action filter_type
action union
action find
entity Johann Koch
relation country of citizenship
action find
entity Simon Gaines
relation country of citizenship
type political territorial entity
{'OR': [['Johann Koch', 'country of citizenship', {'concept': 'political territorial entity'}], ['Simon Gaines', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Johann_Koch property:country_of_citizenship ?b } UNION { resource:Simon_Gaines property:country_of_citizenship ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q9676
P1071
Q2235308
USER
Which ship type has that political territory as its final place of assembly ?
(c(Q2235308),P1071,Q9676)
action filter_type
action find_reverse
entity Q9676
relation P1071
type Q2235308
[{'concept': 'Q2235308'}, 'P1071', 'Q9676']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q2235308 . ?u property:P1071 resource:Q9676 }
Isle of Man
action filter_type
action find_reverse
entity Isle of Man
relation location of final assembly
type ship type
[{'concept': 'ship type'}, 'location of final assembly', 'Isle of Man']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:ship_type . ?u property:location_of_final_assembly resource:Isle_of_Man }
[]
ship type
Clarification for simple ques.
Q183
SYSTEM
Did you mean Germany ?
Q183 Q9676
(c(Q2235308),P1071,Q183) (c(Q2235308),P1071,Q9676)
[ANSWER]
[{'concept': 'Q2235308'}, 'P1071', 'Q183'] [{'concept': 'Q2235308'}, 'P1071', 'Q9676']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q2235308 . ?u property:P1071 resource:Q9676 }
Germany Isle of Man
Did you mean Germany ?
Germany
[{'concept': 'ship type'}, 'location of final assembly', 'Germany'] [{'concept': 'ship type'}, 'location of final assembly', 'Isle of Man']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:ship_type . ?u property:location_of_final_assembly resource:Isle_of_Man }
[]
Simple Question (Coreferenced)
USER
No, I meant Isle of Man. Could you tell me the answer for that?
(c(Q2235308),P1071,Q9676)
Q9676
[{'concept': 'Q2235308'}, 'P1071', 'Q9676']
[{'concept': 'ship type'}, 'location of final assembly', 'Isle of Man']
[]
Q24026928
SYSTEM
Honora
Q24026928
(c(Q2235308),P1071,Q9676)
action filter_type
action find_reverse
entity Q9676
relation P1071
type Q2235308
[ANSWER] has that political territory as its final place of assembly
[{'concept': 'Q2235308'}, 'P1071', 'Q9676']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q2235308 . ?u property:P1071 resource:Q9676 }
Honora
Honora has that political territory as its final place of assembly
Honora
action filter_type
action find_reverse
entity Isle of Man
relation location of final assembly
type ship type
[{'concept': 'ship type'}, 'location of final assembly', 'Isle of Man']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:ship_type . ?u property:location_of_final_assembly resource:Isle_of_Man }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q258722 Q1695169
P47 P27
Q1048835
USER
Which political territories are the countries of citizenship of Johann Koch or share border with Canals ?
OR((Q1695169,P27,c(Q1048835)), (Q258722,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1695169
relation P27
action find
entity Q258722
relation P47
type Q1048835
{'OR': [['Q1695169', 'P27', {'concept': 'Q1048835'}], ['Q258722', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q1695169 property:P27 ?a } UNION { resource:Q258722 property:P47 ?a } } . ?a rdf:type ontology:Q1048835 }
Canals Johann Koch
action filter_type
action union
action find
entity Johann Koch
relation country of citizenship
action find
entity Canals
relation shares border with
type political territorial entity
{'OR': [['Johann Koch', 'country of citizenship', {'concept': 'political territorial entity'}], ['Canals', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Johann_Koch property:country_of_citizenship ?a } UNION { resource:Canals property:shares_border_with ?a } } . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q508503 Q377446 Q1807484 Q183 Q2047561 Q979051 Q2041864 Q1905388 Q2269606 Q1993458
SYSTEM
Aielo de Malferit, Vallés, Llanera de Ranes, Germany, Cerdà, Montesa, Torrella, L'Alcúdia de Crespins, La Granja de la Costera, L'Olleria
Q508503 Q377446 Q1807484 Q183 Q2047561 Q979051 Q2041864 Q1905388 Q2269606 Q1993458
OR((Q1695169,P27,c(Q1048835)), (Q258722,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1695169
relation P27
action find
entity Q258722
relation P47
type Q1048835
[ANSWERS] are the countries of citizenship of Johann Koch or share border with Canals
{'OR': [['Q1695169', 'P27', {'concept': 'Q1048835'}], ['Q258722', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q1695169 property:P27 ?a } UNION { resource:Q258722 property:P47 ?a } } . ?a rdf:type ontology:Q1048835 }
Aielo de Malferit Vallés Llanera de Ranes Germany Cerdà Montesa Torrella L'Alcúdia de Crespins La Granja de la Costera L'Olleria
Aielo de Malferit, Vallés, Llanera de Ranes, Germany, Cerdà, Montesa, Torrella, L'Alcúdia de Crespins, La Granja de la Costera and L'Olleria are the countries of citizenship of Johann Koch or share border with Canals
Aielo de Malferit Vallés Llanera de Ranes Germany Cerdà Montesa Torrella L'Alcúdia de Crespins La Granja de la Costera L'Olleria
action filter_type
action union
action find
entity Johann Koch
relation country of citizenship
action find
entity Canals
relation shares border with
type political territorial entity
{'OR': [['Johann Koch', 'country of citizenship', {'concept': 'political territorial entity'}], ['Canals', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Johann_Koch property:country_of_citizenship ?a } UNION { resource:Canals property:shares_border_with ?a } } . ?a rdf:type ontology:political_territorial_entity }
[]