Simple Question (Direct)
Simple Question
Q8319544
P166
Q618779
USER
Which award was received by Félix Datas ?
(Q8319544,P166,c(Q618779))
action filter_type
action find
entity Q8319544
relation P166
type Q618779
['Q8319544', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q618779 . resource:Q8319544 property:P166 ?r }
Félix Datas
action filter_type
action find
entity Félix Datas
relation award received
type award
['Félix Datas', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:award . resource:Félix_Datas property:award_received ?r }
[]
award
Q10855271
SYSTEM
Knight of the Legion of Honour
Q10855271
(Q8319544,P166,c(Q618779))
action filter_type
action find
entity Q8319544
relation P166
type Q618779
The [ANSWER] was received by Félix Datas
['Q8319544', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q618779 . resource:Q8319544 property:P166 ?r }
Knight of the Legion of Honour
The Knight of the Legion of Honour was received by Félix Datas
Knight of the Legion of Honour
action filter_type
action find
entity Félix Datas
relation award received
type award
['Félix Datas', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:award . resource:Félix_Datas property:award_received ?r }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q10855271 Q390837
P17
Q15617994
USER
Does that award belong to Giave ?
(Q10855271,P17,Q390837)
action is_in
entity Q390837
action find
entity Q10855271
relation P17
['Q10855271', 'P17', 'Q390837']
ASK WHERE { resource:Q10855271 property:P17 resource:Q390837 }
Knight of the Legion of Honour Giave
action is_in
entity Giave
action find
entity Knight of the Legion of Honour
relation country
['Knight of the Legion of Honour', 'country', 'Giave']
ASK WHERE { resource:Knight_of_the_Legion_of_Honour property:country resource:Giave }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q10855271,P17,Q390837)
action is_in
entity Q390837
action find
entity Q10855271
relation P17
[ANSWER]
['Q10855271', 'P17', 'Q390837']
ASK WHERE { resource:Q10855271 property:P17 resource:Q390837 }
No
action is_in
entity Giave
action find
entity Knight of the Legion of Honour
relation country
['Knight of the Legion of Honour', 'country', 'Giave']
ASK WHERE { resource:Knight_of_the_Legion_of_Honour property:country resource:Giave }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1912263 Q8319544
P20
Q56061
USER
Which administrative territories did Félix Datas or Max Bleibtreu expire ?
OR((Q8319544,P20,c(Q56061)), (Q1912263,P20,c(Q56061)))
action filter_type
action union
action find
entity Q8319544
relation P20
action find
entity Q1912263
relation P20
type Q56061
{'OR': [['Q8319544', 'P20', {'concept': 'Q56061'}], ['Q1912263', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . { ?b property:P20 ?i . VALUES ( ?b ) { ( resource:Q8319544 ) ( resource:Q1912263 ) } } }
Max Bleibtreu Félix Datas
action filter_type
action union
action find
entity Félix Datas
relation place of death
action find
entity Max Bleibtreu
relation place of death
type administrative territorial entity
{'OR': [['Félix Datas', 'place of death', {'concept': 'administrative territorial entity'}], ['Max Bleibtreu', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . { ?b property:place_of_death ?i . VALUES ( ?b ) { ( resource:Félix_Datas ) ( resource:Max_Bleibtreu ) } } }
[]
administrative territorial entity
Q586 Q90
SYSTEM
Bonn, Paris
Q586 Q90
OR((Q8319544,P20,c(Q56061)), (Q1912263,P20,c(Q56061)))
action filter_type
action union
action find
entity Q8319544
relation P20
action find
entity Q1912263
relation P20
type Q56061
Félix Datas or Max Bleibtreu expired in [ANSWERS]
{'OR': [['Q8319544', 'P20', {'concept': 'Q56061'}], ['Q1912263', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . { ?b property:P20 ?i . VALUES ( ?b ) { ( resource:Q8319544 ) ( resource:Q1912263 ) } } }
Bonn Paris
Félix Datas or Max Bleibtreu expired in Bonn and Paris
Bonn Paris
action filter_type
action union
action find
entity Félix Datas
relation place of death
action find
entity Max Bleibtreu
relation place of death
type administrative territorial entity
{'OR': [['Félix Datas', 'place of death', {'concept': 'administrative territorial entity'}], ['Max Bleibtreu', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . { ?b property:place_of_death ?i . VALUES ( ?b ) { ( resource:Félix_Datas ) ( resource:Max_Bleibtreu ) } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q586
P190
Q56061
USER
Which administrative territories are partner towns of that one ?
(Q586,P190,c(Q56061))
action filter_type
action find
entity Q586
relation P190
type Q56061
['Q586', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . resource:Q586 property:P190 ?o }
Bonn
action filter_type
action find
entity Bonn
relation sister city
type administrative territorial entity
['Bonn', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . resource:Bonn property:sister_city ?o }
[]
administrative territorial entity
Clarification for simple ques.
Q90
SYSTEM
Did you mean Paris ?
Q586 Q90
(Q586,P190,c(Q56061)) (Q90,P190,c(Q56061))
[ANSWER]
['Q586', 'P190', {'concept': 'Q56061'}] ['Q90', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . resource:Q586 property:P190 ?o }
Bonn Paris
Did you mean Paris ?
Paris
['Bonn', 'sister city', {'concept': 'administrative territorial entity'}] ['Paris', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . resource:Bonn property:sister_city ?o }
[]
Simple Question (Coreferenced)
USER
No, I meant Bonn. Could you tell me the answer for that?
(Q586,P190,c(Q56061))
Q586
['Q586', 'P190', {'concept': 'Q56061'}]
['Bonn', 'sister city', {'concept': 'administrative territorial entity'}]
[]
Q1491 Q33935 Q2280
SYSTEM
La Paz, Tel Aviv, Minsk
Q33935 Q2280 Q1491 Q525100 Q5764 Q10686
(Q586,P190,c(Q56061))
action filter_type
action find
entity Q586
relation P190
type Q56061
[ANSWERS] are partner towns of that one
['Q586', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . resource:Q586 property:P190 ?o }
Tel Aviv Minsk La Paz Budafok Bukhara Belfast
La Paz, Tel Aviv and Minsk are partner towns of that one
La Paz Tel Aviv Minsk
action filter_type
action find
entity Bonn
relation sister city
type administrative territorial entity
['Bonn', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . resource:Bonn property:sister_city ?o }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P190
Q56061
USER
How many administrative territories are partner towns of that administrative territory ?
(Q33935,P190,c(Q56061))
['Q33935', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q33935 property:P190 ?z . ?z rdf:type ontology:Q56061 }
['Tel Aviv', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Tel_Aviv property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q2280
SYSTEM
Did you mean Minsk ?
(Q1491,P190,c(Q56061)) (Q33935,P190,c(Q56061)) (Q2280,P190,c(Q56061))
[ANSWER]
['Q1491', 'P190', {'concept': 'Q56061'}] ['Q33935', 'P190', {'concept': 'Q56061'}] ['Q2280', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q33935 property:P190 ?z . ?z rdf:type ontology:Q56061 }
Did you mean Minsk ?
Minsk
['La Paz', 'sister city', {'concept': 'administrative territorial entity'}] ['Tel Aviv', 'sister city', {'concept': 'administrative territorial entity'}] ['Minsk', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Tel_Aviv property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Tel Aviv. Could you tell me the answer for that?
(Q33935,P190,c(Q56061))
Q33935
['Q33935', 'P190', {'concept': 'Q56061'}]
['Tel Aviv', 'sister city', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
26
Q641 Q649 Q472 Q185632 Q47492 Q35493 Q3711 Q1781 Q1489 Q1741 Q3306 Q580 Q586 Q17151 Q585 Q21197 Q7880 Q365 Q174 Q270 Q8678 Q490 Q956 Q1492 Q60 Q2066
(Q33935,P190,c(Q56061))
[ANSWER]
['Q33935', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q33935 property:P190 ?z . ?z rdf:type ontology:Q56061 }
Venice Moscow Sofia Limassol Gaza City Almaty Belgrade Budapest Mexico City Vienna Panama City Łódź Bonn Thessaloniki Oslo Chișinău Toulouse Cologne São Paulo Warsaw Rio de Janeiro Milan Beijing Barcelona New York City Essen
26
['Tel Aviv', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Tel_Aviv property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2280
P931
Q62447
USER
Which city do Minsk serve ?
(c(Q62447),P931,Q2280)
action filter_type
action find_reverse
entity Q2280
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q2280']
SELECT DISTINCT ?t WHERE { ?t property:P931 resource:Q2280 . ?t rdf:type ontology:Q62447 }
Minsk
action filter_type
action find_reverse
entity Minsk
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Minsk']
SELECT DISTINCT ?t WHERE { ?t property:place_served_by_airport resource:Minsk . ?t rdf:type ontology:aerodrome }
[]
aerodrome
Q777855 Q1373238
SYSTEM
Minsk National Airport, Minsk-1 Airport
Q777855 Q1373238
(c(Q62447),P931,Q2280)
action filter_type
action find_reverse
entity Q2280
relation P931
type Q62447
Minsk serve the [ANSWERS]
[{'concept': 'Q62447'}, 'P931', 'Q2280']
SELECT DISTINCT ?t WHERE { ?t property:P931 resource:Q2280 . ?t rdf:type ontology:Q62447 }
Minsk National Airport Minsk-1 Airport
Minsk serve the Minsk National Airport and Minsk-1 Airport
Minsk National Airport Minsk-1 Airport
action filter_type
action find_reverse
entity Minsk
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Minsk']
SELECT DISTINCT ?t WHERE { ?t property:place_served_by_airport resource:Minsk . ?t rdf:type ontology:aerodrome }
[]