Simple Question (Direct)
Simple Question
Q365476
P19
Q56061
USER
Which administrative territory is the place of birth of Adolph Nägel ?
(Q365476,P19,c(Q56061))
action filter_type
action find
entity Q365476
relation P19
type Q56061
['Q365476', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q365476 property:P19 ?t }
Adolph Nägel
action filter_type
action find
entity Adolph Nägel
relation place of birth
type administrative territorial entity
['Adolph Nägel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Adolph_Nägel property:place_of_birth ?t }
[]
administrative territorial entity
Q383394
SYSTEM
Döhlen
Q383394
(Q365476,P19,c(Q56061))
action filter_type
action find
entity Q365476
relation P19
type Q56061
[ANSWER] is the place of birth of Adolph Nägel
['Q365476', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q365476 property:P19 ?t }
Döhlen
Döhlen is the place of birth of Adolph Nägel
Döhlen
action filter_type
action find
entity Adolph Nägel
relation place of birth
type administrative territorial entity
['Adolph Nägel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Adolph_Nägel property:place_of_birth ?t }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q365476
P20
Q515
USER
Where did Adolph Nägel expire ?
(Q365476,P20,c(Q515))
action filter_type
action find
entity Q365476
relation P20
type Q515
['Q365476', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { resource:Q365476 property:P20 ?q . ?q rdf:type ontology:Q515 }
Adolph Nägel
action filter_type
action find
entity Adolph Nägel
relation place of death
type city
['Adolph Nägel', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { resource:Adolph_Nägel property:place_of_death ?q . ?q rdf:type ontology:city }
[]
city
Q1731
SYSTEM
Dresden
Q1731
(Q365476,P20,c(Q515))
action filter_type
action find
entity Q365476
relation P20
type Q515
Adolph Nägel expired in [ANSWER]
['Q365476', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { resource:Q365476 property:P20 ?q . ?q rdf:type ontology:Q515 }
Dresden
Adolph Nägel expired in Dresden
Dresden
action filter_type
action find
entity Adolph Nägel
relation place of death
type city
['Adolph Nägel', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { resource:Adolph_Nägel property:place_of_death ?q . ?q rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1731
P159
Q19335303
USER
Which German business organizations have their HQ location at that city ?
(c(Q19335303),P159,Q1731)
action filter_type
action find_reverse
entity Q1731
relation P159
type Q19335303
[{'concept': 'Q19335303'}, 'P159', 'Q1731']
SELECT DISTINCT ?q WHERE { ?q property:P159 resource:Q1731 . ?q rdf:type ontology:Q19335303 }
Dresden
action filter_type
action find_reverse
entity Dresden
relation headquarters location
type type of business entity in Germany
[{'concept': 'type of business entity in Germany'}, 'headquarters location', 'Dresden']
SELECT DISTINCT ?q WHERE { ?q property:headquarters_location resource:Dresden . ?q rdf:type ontology:type_of_business_entity_in_Germany }
[]
type of business entity in Germany
Q694537 Q1479792 Q369496
SYSTEM
VEB Robotron, Teehaus, Celesio AG
Q694537 Q369496 Q1479792 Q1339361
(c(Q19335303),P159,Q1731)
action filter_type
action find_reverse
entity Q1731
relation P159
type Q19335303
[ANSWERS] have their HQ location at that city
[{'concept': 'Q19335303'}, 'P159', 'Q1731']
SELECT DISTINCT ?q WHERE { ?q property:P159 resource:Q1731 . ?q rdf:type ontology:Q19335303 }
VEB Robotron Celesio AG Teehaus Teekanne
VEB Robotron, Teehaus and Celesio AG have their HQ location at that city
VEB Robotron Teehaus Celesio AG
action filter_type
action find_reverse
entity Dresden
relation headquarters location
type type of business entity in Germany
[{'concept': 'type of business entity in Germany'}, 'headquarters location', 'Dresden']
SELECT DISTINCT ?q WHERE { ?q property:headquarters_location resource:Dresden . ?q rdf:type ontology:type_of_business_entity_in_Germany }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19254867 Q1731
P276 P190
Q56061
USER
Which administrative territories are partner towns of Dresden or can Hoeverkade be found ?
OR((Q1731,P190,c(Q56061)), (Q19254867,P276,c(Q56061)))
action filter_type
action union
action find
entity Q1731
relation P190
action find
entity Q19254867
relation P276
type Q56061
{'OR': [['Q1731', 'P190', {'concept': 'Q56061'}], ['Q19254867', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . { { resource:Q1731 property:P190 ?u } UNION { resource:Q19254867 property:P276 ?u } } }
Hoeverkade Dresden
action filter_type
action union
action find
entity Dresden
relation sister city
action find
entity Hoeverkade
relation location
type administrative territorial entity
{'OR': [['Dresden', 'sister city', {'concept': 'administrative territorial entity'}], ['Hoeverkade', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . { { resource:Dresden property:sister_city ?u } UNION { resource:Hoeverkade property:location ?u } } }
[]
administrative territorial entity
Q34713 Q3844 Q34370 Q182428 Q16977290 Q2044 Q384 Q16567 Q8385 Q6225
SYSTEM
Salzburg, Brazzaville, Rotterdam, Silistra, Alkmaar, Florence, Skopje, Columbus, Ostrava, Coventry
Q34713 Q3844 Q34370 Q182428 Q16977290 Q2044 Q384 Q16567 Q8385 Q6225
OR((Q1731,P190,c(Q56061)), (Q19254867,P276,c(Q56061)))
action filter_type
action union
action find
entity Q1731
relation P190
action find
entity Q19254867
relation P276
type Q56061
[ANSWERS] are partner towns of Dresden or can Hoeverkade be found
{'OR': [['Q1731', 'P190', {'concept': 'Q56061'}], ['Q19254867', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . { { resource:Q1731 property:P190 ?u } UNION { resource:Q19254867 property:P276 ?u } } }
Salzburg Brazzaville Rotterdam Silistra Alkmaar Florence Skopje Columbus Ostrava Coventry
Salzburg, Brazzaville, Rotterdam, Silistra, Alkmaar, Florence, Skopje, Columbus, Ostrava and Coventry are partner towns of Dresden or can Hoeverkade be found
Salzburg Brazzaville Rotterdam Silistra Alkmaar Florence Skopje Columbus Ostrava Coventry
action filter_type
action union
action find
entity Dresden
relation sister city
action find
entity Hoeverkade
relation location
type administrative territorial entity
{'OR': [['Dresden', 'sister city', {'concept': 'administrative territorial entity'}], ['Hoeverkade', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . { { resource:Dresden property:sister_city ?u } UNION { resource:Hoeverkade property:location ?u } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2044
P36
Q15617994
USER
Which administrative territories consists of Florence as their capital ?
(c(Q15617994),P36,Q2044)
action filter_type
action find_reverse
entity Q2044
relation P36
type Q15617994
[{'concept': 'Q15617994'}, 'P36', 'Q2044']
SELECT DISTINCT ?x WHERE { ?x property:P36 resource:Q2044 . ?x rdf:type ontology:Q15617994 }
Florence
action filter_type
action find_reverse
entity Florence
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Florence']
SELECT DISTINCT ?x WHERE { ?x property:capital resource:Florence . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q2567507 Q1273
SYSTEM
Arno, Tuscany
Q2567507 Q1273
(c(Q15617994),P36,Q2044)
action filter_type
action find_reverse
entity Q2044
relation P36
type Q15617994
[ANSWERS] consist of Florence as their capital
[{'concept': 'Q15617994'}, 'P36', 'Q2044']
SELECT DISTINCT ?x WHERE { ?x property:P36 resource:Q2044 . ?x rdf:type ontology:Q15617994 }
Arno Tuscany
Arno and Tuscany consist of Florence as their capital
Arno Tuscany
action filter_type
action find_reverse
entity Florence
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Florence']
SELECT DISTINCT ?x WHERE { ?x property:capital resource:Florence . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2567507 Q1273
P17
Q15617994
USER
Which administrative territories are Arno and Tuscany situated in ?
(Q2567507,P17,c(Q15617994)) (Q1273,P17,c(Q15617994))
action union
action filter_type
action find
entity Q2567507
relation P17
type Q15617994
action filter_type
action find
entity Q1273
relation P17
type Q15617994
['Q2567507', 'P17', {'concept': 'Q15617994'}] ['Q1273', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?j ) { ( resource:Q1273 ) ( resource:Q2567507 ) } . ?j property:P17 ?w }
Arno Tuscany
action union
action filter_type
action find
entity Arno
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Tuscany
relation country
type designation for an administrative territorial entity
['Arno', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Tuscany', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?j ) { ( resource:Tuscany ) ( resource:Arno ) } . ?j property:country ?w }
[]
designation for an administrative territorial entity
Q142 Q38
SYSTEM
France, Italy
Q142 Q38
(Q2567507,P17,c(Q15617994)) (Q1273,P17,c(Q15617994))
action union
action filter_type
action find
entity Q2567507
relation P17
type Q15617994
action filter_type
action find
entity Q1273
relation P17
type Q15617994
Arno and Tuscany are situated in [ANSWERS]
['Q2567507', 'P17', {'concept': 'Q15617994'}] ['Q1273', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?j ) { ( resource:Q1273 ) ( resource:Q2567507 ) } . ?j property:P17 ?w }
France Italy
Arno and Tuscany are situated in France and Italy
France Italy
action union
action filter_type
action find
entity Arno
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Tuscany
relation country
type designation for an administrative territorial entity
['Arno', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Tuscany', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?j ) { ( resource:Tuscany ) ( resource:Arno ) } . ?j property:country ?w }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q142 Q38
P35
Q502895
USER
Who are the heads of state of France and Italy ?
(Q142,P35,c(Q502895)) (Q38,P35,c(Q502895))
action union
action filter_type
action find
entity Q142
relation P35
type Q502895
action filter_type
action find
entity Q38
relation P35
type Q502895
['Q142', 'P35', {'concept': 'Q502895'}] ['Q38', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { { resource:Q142 property:P35 ?l . ?l rdf:type ontology:Q502895 } UNION { resource:Q38 property:P35 ?l . ?l rdf:type ontology:Q502895 } }
France Italy
action union
action filter_type
action find
entity France
relation head of state
type common name
action filter_type
action find
entity Italy
relation head of state
type common name
['France', 'head of state', {'concept': 'common name'}] ['Italy', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { { resource:France property:head_of_state ?l . ?l rdf:type ontology:common_name } UNION { resource:Italy property:head_of_state ?l . ?l rdf:type ontology:common_name } }
[]
common name
Q2105 Q2042 Q2038
SYSTEM
Jacques Chirac, Charles de Gaulle, François Mitterrand
Q2105 Q2038 Q157 Q329 Q2042 Q12950 Q2185 Q2124 Q1233 Q1245 Q3956186 Q1241 Q1240 Q1242 Q1238 Q153832 Q1228 Q1230 Q1224 Q1235 Q1220
(Q142,P35,c(Q502895)) (Q38,P35,c(Q502895))
action union
action filter_type
action find
entity Q142
relation P35
type Q502895
action filter_type
action find
entity Q38
relation P35
type Q502895
The heads of state of France and Italy are President [ANSWERS]
['Q142', 'P35', {'concept': 'Q502895'}] ['Q38', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { { resource:Q142 property:P35 ?l . ?l rdf:type ontology:Q502895 } UNION { resource:Q38 property:P35 ?l . ?l rdf:type ontology:Q502895 } }
Jacques Chirac François Mitterrand François Hollande Nicolas Sarkozy Charles de Gaulle Alain Poher Georges Pompidou Valéry Giscard d'Estaing Sandro Pertini Enrico De Nicola Sergio Mattarella Giovanni Gronchi Antonio Segni Luigi Einaudi Giuseppe Saragat Alcide De Gasperi Oscar Luigi Scalfaro Francesco Cossiga Carlo Azeglio Ciampi Giovanni Leone Giorgio Napolitano
The heads of state of France and Italy are President Jacques Chirac, Charles de Gaulle and François Mitterrand
Jacques Chirac Charles de Gaulle François Mitterrand
action union
action filter_type
action find
entity France
relation head of state
type common name
action filter_type
action find
entity Italy
relation head of state
type common name
['France', 'head of state', {'concept': 'common name'}] ['Italy', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { { resource:France property:head_of_state ?l . ?l rdf:type ontology:common_name } UNION { resource:Italy property:head_of_state ?l . ?l rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2105
P140
Q874405
USER
Which social group does that person correspond to ?
(Q2105,P140,c(Q874405))
action filter_type
action find
entity Q2105
relation P140
type Q874405
['Q2105', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q874405 . resource:Q2105 property:P140 ?v }
Jacques Chirac
action filter_type
action find
entity Jacques Chirac
relation religion
type social group
['Jacques Chirac', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:social_group . resource:Jacques_Chirac property:religion ?v }
[]
social group
Clarification for simple ques.
Q2038
SYSTEM
Did you mean François Mitterrand ?
Q2105 Q2042 Q2038
(Q2105,P140,c(Q874405)) (Q2042,P140,c(Q874405)) (Q2038,P140,c(Q874405))
[ANSWER]
['Q2105', 'P140', {'concept': 'Q874405'}] ['Q2042', 'P140', {'concept': 'Q874405'}] ['Q2038', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q874405 . resource:Q2105 property:P140 ?v }
Jacques Chirac Charles de Gaulle François Mitterrand
Did you mean François Mitterrand ?
François Mitterrand
['Jacques Chirac', 'religion', {'concept': 'social group'}] ['Charles de Gaulle', 'religion', {'concept': 'social group'}] ['François Mitterrand', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:social_group . resource:Jacques_Chirac property:religion ?v }
[]
Simple Question (Coreferenced)
USER
No, I meant Jacques Chirac. Could you tell me the answer for that?
(Q2105,P140,c(Q874405))
Q2105
['Q2105', 'P140', {'concept': 'Q874405'}]
['Jacques Chirac', 'religion', {'concept': 'social group'}]
[]
Q1841
SYSTEM
Catholicism
Q1841
(Q2105,P140,c(Q874405))
action filter_type
action find
entity Q2105
relation P140
type Q874405
That person corresponds to [ANSWER]
['Q2105', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q874405 . resource:Q2105 property:P140 ?v }
Catholicism
That person corresponds to Catholicism
Catholicism
action filter_type
action find
entity Jacques Chirac
relation religion
type social group
['Jacques Chirac', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:social_group . resource:Jacques_Chirac property:religion ?v }
[]