Simple Question (Direct)
Simple Question
Q7402447
P840
Q56061
USER
Where is Saints and Sinners set in ?
(Q7402447,P840,c(Q56061))
action filter_type
action find
entity Q7402447
relation P840
type Q56061
['Q7402447', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q7402447 property:P840 ?b . ?b rdf:type ontology:Q56061 }
Saints and Sinners
action filter_type
action find
entity Saints and Sinners
relation narrative location
type administrative territorial entity
['Saints and Sinners', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Saints_and_Sinners property:narrative_location ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q7402447,P840,c(Q56061))
action filter_type
action find
entity Q7402447
relation P840
type Q56061
Saints and Sinners is set in the [ANSWER]
['Q7402447', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q7402447 property:P840 ?b . ?b rdf:type ontology:Q56061 }
New York City
Saints and Sinners is set in the New York City
New York City
action filter_type
action find
entity Saints and Sinners
relation narrative location
type administrative territorial entity
['Saints and Sinners', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Saints_and_Sinners property:narrative_location ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q60
P190
Q56061
USER
Which administrative territories are twin towns of that one ?
(Q60,P190,c(Q56061))
action filter_type
action find
entity Q60
relation P190
type Q56061
['Q60', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q60 property:P190 ?f . ?f rdf:type ontology:Q56061 }
New York City
action filter_type
action find
entity New York City
relation sister city
type administrative territorial entity
['New York City', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:New_York_City property:sister_city ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807 Q1781 Q956
SYSTEM
Madrid, Budapest, Beijing
Q3630 Q33935 Q34820 Q34647 Q2807 Q956 Q1781 Q84 Q85 Q1490 Q1218 Q3561 Q51103 Q585
(Q60,P190,c(Q56061))
action filter_type
action find
entity Q60
relation P190
type Q56061
[ANSWERS] are twin towns of that one
['Q60', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q60 property:P190 ?f . ?f rdf:type ontology:Q56061 }
Jakarta Tel Aviv Santo Domingo Johannesburg Madrid Beijing Budapest London Cairo Tokyo Jerusalem Algiers Cali Oslo
Madrid, Budapest and Beijing are twin towns of that one
Madrid Budapest Beijing
action filter_type
action find
entity New York City
relation sister city
type administrative territorial entity
['New York City', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:New_York_City property:sister_city ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2807
P276
Q491040
USER
Which violent crime is located at that administrative territory ?
(c(Q491040),P276,Q2807)
action filter_type
action find_reverse
entity Q2807
relation P276
type Q491040
[{'concept': 'Q491040'}, 'P276', 'Q2807']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q491040 . ?r property:P276 resource:Q2807 }
Madrid
action filter_type
action find_reverse
entity Madrid
relation location
type violent crime
[{'concept': 'violent crime'}, 'location', 'Madrid']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:violent_crime . ?r property:location resource:Madrid }
[]
violent crime
Clarification for simple ques.
Q2807
SYSTEM
Did you mean Madrid ?
Q2807 Q1781 Q956
(c(Q491040),P276,Q2807) (c(Q491040),P276,Q1781) (c(Q491040),P276,Q956)
[ANSWER]
[{'concept': 'Q491040'}, 'P276', 'Q2807'] [{'concept': 'Q491040'}, 'P276', 'Q1781'] [{'concept': 'Q491040'}, 'P276', 'Q956']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q491040 . ?r property:P276 resource:Q2807 }
Madrid Budapest Beijing
Did you mean Madrid ?
Madrid
[{'concept': 'violent crime'}, 'location', 'Madrid'] [{'concept': 'violent crime'}, 'location', 'Budapest'] [{'concept': 'violent crime'}, 'location', 'Beijing']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:violent_crime . ?r property:location resource:Madrid }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q491040),P276,Q2807)
[{'concept': 'Q491040'}, 'P276', 'Q2807']
[{'concept': 'violent crime'}, 'location', 'Madrid']
[]
Q213531
SYSTEM
2001 Madrid train bombings
Q213531
(c(Q491040),P276,Q2807)
action filter_type
action find_reverse
entity Q2807
relation P276
type Q491040
[ANSWER] is located at that administrative territory
[{'concept': 'Q491040'}, 'P276', 'Q2807']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q491040 . ?r property:P276 resource:Q2807 }
2001 Madrid train bombings
2001 Madrid train bombings is located at that administrative territory
2001 Madrid train bombings
action filter_type
action find_reverse
entity Madrid
relation location
type violent crime
[{'concept': 'violent crime'}, 'location', 'Madrid']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:violent_crime . ?r property:location resource:Madrid }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q213531 Q29
P17
Q15617994
USER
Is that violent crime a part of Spain ?
(Q213531,P17,Q29)
action is_in
entity Q29
action find
entity Q213531
relation P17
['Q213531', 'P17', 'Q29']
ASK WHERE { resource:Q213531 property:P17 resource:Q29 }
2001 Madrid train bombings Spain
action is_in
entity Spain
action find
entity 2001 Madrid train bombings
relation country
['2001 Madrid train bombings', 'country', 'Spain']
ASK WHERE { resource:2001_Madrid_train_bombings property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q213531,P17,Q29)
action is_in
entity Q29
action find
entity Q213531
relation P17
[ANSWER]
['Q213531', 'P17', 'Q29']
ASK WHERE { resource:Q213531 property:P17 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity 2001 Madrid train bombings
relation country
['2001 Madrid train bombings', 'country', 'Spain']
ASK WHERE { resource:2001_Madrid_train_bombings property:country resource:Spain }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q938247 Q29
P47 P27
Q15617994
USER
Which administrative territories share the border with Spain or are Mini Jakobsen an inhabitant of ?
OR((Q29,P47,c(Q15617994)), (Q938247,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q29
relation P47
action find
entity Q938247
relation P27
type Q15617994
{'OR': [['Q29', 'P47', {'concept': 'Q15617994'}], ['Q938247', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { { resource:Q29 property:P47 ?m } UNION { resource:Q938247 property:P27 ?m } } }
Mini Jakobsen Spain
action filter_type
action union
action find
entity Spain
relation shares border with
action find
entity Mini Jakobsen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Spain', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Mini Jakobsen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Spain property:shares_border_with ?m } UNION { resource:Mini_Jakobsen property:country_of_citizenship ?m } } }
[]
designation for an administrative territorial entity
Q142 Q1025 Q45 Q1028 Q228 Q20
SYSTEM
France, Mauritania, Portugal, Morocco, Andorra, Norway
Q142 Q1025 Q45 Q1028 Q228 Q20
OR((Q29,P47,c(Q15617994)), (Q938247,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q29
relation P47
action find
entity Q938247
relation P27
type Q15617994
[ANSWERS] share the border with Spain or are Mini Jakobsen an inhabitant of
{'OR': [['Q29', 'P47', {'concept': 'Q15617994'}], ['Q938247', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { { resource:Q29 property:P47 ?m } UNION { resource:Q938247 property:P27 ?m } } }
France Mauritania Portugal Morocco Andorra Norway
France, Mauritania, Portugal, Morocco, Andorra and Norway share the border with Spain or are Mini Jakobsen an inhabitant of
France Mauritania Portugal Morocco Andorra Norway
action filter_type
action union
action find
entity Spain
relation shares border with
action find
entity Mini Jakobsen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Spain', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Mini Jakobsen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Spain property:shares_border_with ?m } UNION { resource:Mini_Jakobsen property:country_of_citizenship ?m } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q142
P36
Q56061
USER
Which administrative territory is known as the capital of that administrative territory ?
(Q142,P36,c(Q56061))
action filter_type
action find
entity Q142
relation P36
type Q56061
['Q142', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q142 property:P36 ?v . ?v rdf:type ontology:Q56061 }
France
action filter_type
action find
entity France
relation capital
type administrative territorial entity
['France', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:France property:capital ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q1025
SYSTEM
Did you mean Mauritania ?
Q142 Q1025 Q45 Q1028 Q228 Q20
(Q142,P36,c(Q56061)) (Q1025,P36,c(Q56061)) (Q45,P36,c(Q56061)) (Q1028,P36,c(Q56061)) (Q228,P36,c(Q56061)) (Q20,P36,c(Q56061))
[ANSWER]
['Q142', 'P36', {'concept': 'Q56061'}] ['Q1025', 'P36', {'concept': 'Q56061'}] ['Q45', 'P36', {'concept': 'Q56061'}] ['Q1028', 'P36', {'concept': 'Q56061'}] ['Q228', 'P36', {'concept': 'Q56061'}] ['Q20', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q142 property:P36 ?v . ?v rdf:type ontology:Q56061 }
France Mauritania Portugal Morocco Andorra Norway
Did you mean Mauritania ?
Mauritania
['France', 'capital', {'concept': 'administrative territorial entity'}] ['Mauritania', 'capital', {'concept': 'administrative territorial entity'}] ['Portugal', 'capital', {'concept': 'administrative territorial entity'}] ['Morocco', 'capital', {'concept': 'administrative territorial entity'}] ['Andorra', 'capital', {'concept': 'administrative territorial entity'}] ['Norway', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:France property:capital ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant France. Could you tell me the answer for that?
(Q142,P36,c(Q56061))
Q142
['Q142', 'P36', {'concept': 'Q56061'}]
['France', 'capital', {'concept': 'administrative territorial entity'}]
[]
Q90
SYSTEM
Paris
Q90
(Q142,P36,c(Q56061))
action filter_type
action find
entity Q142
relation P36
type Q56061
[ANSWER] is known as the capital of that administrative territory
['Q142', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q142 property:P36 ?v . ?v rdf:type ontology:Q56061 }
Paris
Paris is known as the capital of that administrative territory
Paris
action filter_type
action find
entity France
relation capital
type administrative territorial entity
['France', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:France property:capital ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P35
Q502895
USER
Who are elected as the head of state of France ?
(Q142,P35,c(Q502895))
action filter_type
action find
entity Q142
relation P35
type Q502895
['Q142', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q142 property:P35 ?h . ?h rdf:type ontology:Q502895 }
France
action filter_type
action find
entity France
relation head of state
type common name
['France', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:France property:head_of_state ?h . ?h 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
(Q142,P35,c(Q502895))
action filter_type
action find
entity Q142
relation P35
type Q502895
[ANSWERS] are elected as the head of state of France
['Q142', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q142 property:P35 ?h . ?h 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
Jacques Chirac, Charles de Gaulle and François Mitterrand are elected as the head of state of France
Jacques Chirac Charles de Gaulle François Mitterrand
action filter_type
action find
entity France
relation head of state
type common name
['France', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:France property:head_of_state ?h . ?h rdf:type ontology:common_name }
[]