Simple Question (Direct)
Simple Question
Q77585
P19
Q56061
USER
Which administrative territory was Erik Ode born in ?
(Q77585,P19,c(Q56061))
action filter_type
action find
entity Q77585
relation P19
type Q56061
['Q77585', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q77585 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Erik Ode
action filter_type
action find
entity Erik Ode
relation place of birth
type administrative territorial entity
['Erik Ode', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Erik_Ode property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q77585,P19,c(Q56061))
action filter_type
action find
entity Q77585
relation P19
type Q56061
The [ANSWER] was Erik Ode born in
['Q77585', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q77585 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Berlin
The Berlin was Erik Ode born in
Berlin
action filter_type
action find
entity Erik Ode
relation place of birth
type administrative territorial entity
['Erik Ode', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Erik_Ode property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q77585
P57
Q838948
USER
Which works of art are that person a director of ?
(c(Q838948),P57,Q64)
action filter_type
action find_reverse
entity Q77585
relation P57
type Q838948
[{'concept': 'Q838948'}, 'P57', 'Q64']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q838948 . ?v property:P57 resource:Q77585 }
Erik Ode
action filter_type
action find_reverse
entity Erik Ode
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Berlin']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:work_of_art . ?v property:director resource:Erik_Ode }
[]
work of art
Q13423317 Q17061540 Q5447808
SYSTEM
The Land of Smiles, The Model Husband, Fight of the Tertia
Q18209018 Q13423317 Q17061540 Q5447808
(c(Q838948),P57,Q64)
action filter_type
action find_reverse
entity Q77585
relation P57
type Q838948
[ANSWERS] are that person a director of
[{'concept': 'Q838948'}, 'P57', 'Q64']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q838948 . ?v property:P57 resource:Q77585 }
Just Once a Great Lady The Land of Smiles The Model Husband Fight of the Tertia
The Land of Smiles, The Model Husband and Fight of the Tertia are that person a director of
The Land of Smiles The Model Husband Fight of the Tertia
action filter_type
action find_reverse
entity Erik Ode
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Berlin']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:work_of_art . ?v property:director resource:Erik_Ode }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P495
Q1048835
USER
How many political territories are the countries of origin of that work of art ?
(Q17061540,P495,c(Q1048835))
['Q17061540', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q17130131 property:P495 ?z . ?z rdf:type ontology:Q1048835 }
['The Model Husband', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:The_Model_Husband property:country_of_origin ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Quantitative|Count|Single entity type|Clarification
Q5447808
SYSTEM
Did you mean Fight of the Tertia ?
(Q13423317,P495,c(Q1048835)) (Q17061540,P495,c(Q1048835)) (Q5447808,P495,c(Q1048835))
[ANSWER]
['Q13423317', 'P495', {'concept': 'Q1048835'}] ['Q17061540', 'P495', {'concept': 'Q1048835'}] ['Q5447808', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q17130131 property:P495 ?z . ?z rdf:type ontology:Q1048835 }
Did you mean Fight of the Tertia ?
Fight of the Tertia
['The Land of Smiles', 'country of origin', {'concept': 'political territorial entity'}] ['The Model Husband', 'country of origin', {'concept': 'political territorial entity'}] ['Fight of the Tertia', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:The_Model_Husband property:country_of_origin ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant The Model Husband. Could you tell me the answer for that?
(Q17061540,P495,c(Q1048835))
Q17061540
['Q17061540', 'P495', {'concept': 'Q1048835'}]
['The Model Husband', 'country of origin', {'concept': 'political territorial entity'}]
[]
SYSTEM
1
Q183
(Q17061540,P495,c(Q1048835))
[ANSWER]
['Q17061540', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q17130131 property:P495 ?z . ?z rdf:type ontology:Q1048835 }
Germany
1
['The Model Husband', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:The_Model_Husband property:country_of_origin ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1630881 Q5447808
P47 P495
Q1048835
USER
Which political territories are the origins of Fight of the Tertia or have a shared border with Puerto Serrano ?
OR((Q5447808,P495,c(Q1048835)), (Q1630881,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q5447808
relation P495
action find
entity Q1630881
relation P47
type Q1048835
{'OR': [['Q5447808', 'P495', {'concept': 'Q1048835'}], ['Q1630881', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q5447808 property:P495 ?t } UNION { resource:Q1630881 property:P47 ?t } } . ?t rdf:type ontology:Q1048835 }
Puerto Serrano Fight of the Tertia
action filter_type
action union
action find
entity Fight of the Tertia
relation country of origin
action find
entity Puerto Serrano
relation shares border with
type political territorial entity
{'OR': [['Fight of the Tertia', 'country of origin', {'concept': 'political territorial entity'}], ['Puerto Serrano', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Fight_of_the_Tertia property:country_of_origin ?t } UNION { resource:Puerto_Serrano property:shares_border_with ?t } } . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1605547 Q1447700 Q183 Q1605609 Q609094 Q818386 Q1442451
SYSTEM
Coripe, El Coronil, Germany, Montellano, Morón de la Frontera, Algodonales, Villamartín
Q1605547 Q1447700 Q183 Q1605609 Q609094 Q818386 Q1442451
OR((Q5447808,P495,c(Q1048835)), (Q1630881,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q5447808
relation P495
action find
entity Q1630881
relation P47
type Q1048835
[ANSWERS] are the origins of Fight of the Tertia or have a shared border with Puerto Serrano
{'OR': [['Q5447808', 'P495', {'concept': 'Q1048835'}], ['Q1630881', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q5447808 property:P495 ?t } UNION { resource:Q1630881 property:P47 ?t } } . ?t rdf:type ontology:Q1048835 }
Coripe El Coronil Germany Montellano Morón de la Frontera Algodonales Villamartín
Coripe, El Coronil, Germany, Montellano, Morón de la Frontera, Algodonales and Villamartín are the origins of Fight of the Tertia or have a shared border with Puerto Serrano
Coripe El Coronil Germany Montellano Morón de la Frontera Algodonales Villamartín
action filter_type
action union
action find
entity Fight of the Tertia
relation country of origin
action find
entity Puerto Serrano
relation shares border with
type political territorial entity
{'OR': [['Fight of the Tertia', 'country of origin', {'concept': 'political territorial entity'}], ['Puerto Serrano', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Fight_of_the_Tertia property:country_of_origin ?t } UNION { resource:Puerto_Serrano property:shares_border_with ?t } } . ?t rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1605609
P6
Q502895
USER
Which person does that political territory serve as the head of government for ?
(Q1605609,P6,c(Q502895))
action filter_type
action find
entity Q1605609
relation P6
type Q502895
['Q1605609', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1605609 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Montellano
action filter_type
action find
entity Montellano
relation head of government
type common name
['Montellano', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Montellano property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1447700
SYSTEM
Did you mean El Coronil ?
Q1605547 Q1447700 Q183 Q1605609 Q609094 Q818386 Q1442451
(Q1605547,P6,c(Q502895)) (Q1447700,P6,c(Q502895)) (Q183,P6,c(Q502895)) (Q1605609,P6,c(Q502895)) (Q609094,P6,c(Q502895)) (Q818386,P6,c(Q502895)) (Q1442451,P6,c(Q502895))
[ANSWER]
['Q1605547', 'P6', {'concept': 'Q502895'}] ['Q1447700', 'P6', {'concept': 'Q502895'}] ['Q183', 'P6', {'concept': 'Q502895'}] ['Q1605609', 'P6', {'concept': 'Q502895'}] ['Q609094', 'P6', {'concept': 'Q502895'}] ['Q818386', 'P6', {'concept': 'Q502895'}] ['Q1442451', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1605609 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Coripe El Coronil Germany Montellano Morón de la Frontera Algodonales Villamartín
Did you mean El Coronil ?
El Coronil
['Coripe', 'head of government', {'concept': 'common name'}] ['El Coronil', 'head of government', {'concept': 'common name'}] ['Germany', 'head of government', {'concept': 'common name'}] ['Montellano', 'head of government', {'concept': 'common name'}] ['Morón de la Frontera', 'head of government', {'concept': 'common name'}] ['Algodonales', 'head of government', {'concept': 'common name'}] ['Villamartín', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Montellano property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Montellano. Could you tell me the answer for that?
(Q1605609,P6,c(Q502895))
Q1605609
['Q1605609', 'P6', {'concept': 'Q502895'}]
['Montellano', 'head of government', {'concept': 'common name'}]
[]
Q14118564
SYSTEM
Francisco José Serrano Ramírez
Q14118564
(Q1605609,P6,c(Q502895))
action filter_type
action find
entity Q1605609
relation P6
type Q502895
[ANSWER] that political territory serves as the head of government for
['Q1605609', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1605609 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Francisco José Serrano Ramírez
Francisco José Serrano Ramírez that political territory serves as the head of government for
Francisco José Serrano Ramírez
action filter_type
action find
entity Montellano
relation head of government
type common name
['Montellano', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Montellano property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q320589
P161
Q838948
USER
Which works of art stars Gus Backus as actor ?
(c(Q838948),P161,Q320589)
action filter_type
action find_reverse
entity Q320589
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q320589']
SELECT DISTINCT ?v WHERE { ?v property:P161 resource:Q320589 . ?v rdf:type ontology:Q838948 }
Gus Backus
action filter_type
action find_reverse
entity Gus Backus
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Gus Backus']
SELECT DISTINCT ?v WHERE { ?v property:cast_member resource:Gus_Backus . ?v rdf:type ontology:work_of_art }
[]
work of art
Q426399 Q426280
SYSTEM
... and you my darling stay here, ...denn die Musik und die Liebe in Tirol
Q426399 Q426280
(c(Q838948),P161,Q320589)
action filter_type
action find_reverse
entity Q320589
relation P161
type Q838948
[ANSWERS] star Gus Backus as actor
[{'concept': 'Q838948'}, 'P161', 'Q320589']
SELECT DISTINCT ?v WHERE { ?v property:P161 resource:Q320589 . ?v rdf:type ontology:Q838948 }
... and you my darling stay here ...denn die Musik und die Liebe in Tirol
... and you my darling stay here and ...denn die Musik und die Liebe in Tirol star Gus Backus as actor
... and you my darling stay here ...denn die Musik und die Liebe in Tirol
action filter_type
action find_reverse
entity Gus Backus
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Gus Backus']
SELECT DISTINCT ?v WHERE { ?v property:cast_member resource:Gus_Backus . ?v rdf:type ontology:work_of_art }
[]