Simple Question (Direct)
Simple Question
Q377463
P166
Q618779
USER
What was received by Adrienne Gessner ?
(Q377463,P166,c(Q618779))
action filter_type
action find
entity Q377463
relation P166
type Q618779
['Q377463', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?m WHERE { resource:Q377463 property:P166 ?m . ?m rdf:type ontology:Q618779 }
Adrienne Gessner
action filter_type
action find
entity Adrienne Gessner
relation award received
type award
['Adrienne Gessner', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?m WHERE { resource:Adrienne_Gessner property:award_received ?m . ?m rdf:type ontology:award }
[]
award
Q1450895
SYSTEM
Kainz Medal
Q1450895
(Q377463,P166,c(Q618779))
action filter_type
action find
entity Q377463
relation P166
type Q618779
The [ANSWER] was received by Adrienne Gessner
['Q377463', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?m WHERE { resource:Q377463 property:P166 ?m . ?m rdf:type ontology:Q618779 }
Kainz Medal
The Kainz Medal was received by Adrienne Gessner
Kainz Medal
action filter_type
action find
entity Adrienne Gessner
relation award received
type award
['Adrienne Gessner', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?m WHERE { resource:Adrienne_Gessner property:award_received ?m . ?m rdf:type ontology:award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q377463
P27
Q1048835
USER
Which political territory is the native country of that person ?
(Q1450895,P27,c(Q1048835))
action filter_type
action find
entity Q377463
relation P27
type Q1048835
['Q1450895', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { resource:Q377463 property:P27 ?t . ?t rdf:type ontology:Q1048835 }
Adrienne Gessner
action filter_type
action find
entity Adrienne Gessner
relation country of citizenship
type political territorial entity
['Kainz Medal', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Adrienne_Gessner property:country_of_citizenship ?t . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
(Q1450895,P27,c(Q1048835))
action filter_type
action find
entity Q377463
relation P27
type Q1048835
[ANSWER] is the native country of that person
['Q1450895', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { resource:Q377463 property:P27 ?t . ?t rdf:type ontology:Q1048835 }
Austria
Austria is the native country of that person
Austria
action filter_type
action find
entity Adrienne Gessner
relation country of citizenship
type political territorial entity
['Kainz Medal', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Adrienne_Gessner property:country_of_citizenship ?t . ?t rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1357797 Q377463
P20
Q56061
USER
Which administrative territories are the places of death of Adrienne Gessner or Ernst Cloos ?
OR((Q377463,P20,c(Q56061)), (Q1357797,P20,c(Q56061)))
action filter_type
action union
action find
entity Q377463
relation P20
action find
entity Q1357797
relation P20
type Q56061
{'OR': [['Q377463', 'P20', {'concept': 'Q56061'}], ['Q1357797', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . { VALUES ( ?g ) { ( resource:Q377463 ) ( resource:Q1357797 ) } . ?g property:P20 ?q } }
Ernst Cloos Adrienne Gessner
action filter_type
action union
action find
entity Adrienne Gessner
relation place of death
action find
entity Ernst Cloos
relation place of death
type administrative territorial entity
{'OR': [['Adrienne Gessner', 'place of death', {'concept': 'administrative territorial entity'}], ['Ernst Cloos', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . { VALUES ( ?g ) { ( resource:Adrienne_Gessner ) ( resource:Ernst_Cloos ) } . ?g property:place_of_death ?q } }
[]
administrative territorial entity
Q1741 Q5092
SYSTEM
Vienna, Baltimore
Q1741 Q5092
OR((Q377463,P20,c(Q56061)), (Q1357797,P20,c(Q56061)))
action filter_type
action union
action find
entity Q377463
relation P20
action find
entity Q1357797
relation P20
type Q56061
[ANSWERS] are the places of death of Adrienne Gessner or Ernst Cloos
{'OR': [['Q377463', 'P20', {'concept': 'Q56061'}], ['Q1357797', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . { VALUES ( ?g ) { ( resource:Q377463 ) ( resource:Q1357797 ) } . ?g property:P20 ?q } }
Vienna Baltimore
Vienna and Baltimore are the places of death of Adrienne Gessner or Ernst Cloos
Vienna Baltimore
action filter_type
action union
action find
entity Adrienne Gessner
relation place of death
action find
entity Ernst Cloos
relation place of death
type administrative territorial entity
{'OR': [['Adrienne Gessner', 'place of death', {'concept': 'administrative territorial entity'}], ['Ernst Cloos', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . { VALUES ( ?g ) { ( resource:Adrienne_Gessner ) ( resource:Ernst_Cloos ) } . ?g property:place_of_death ?q } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1741 Q5092
P190
Q56061
USER
Which administrative territories are the sister cities of those ones ?
(Q1741,P190,c(Q56061)) (Q5092,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
['Q1741', 'P190', {'concept': 'Q56061'}] ['Q5092', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?w property:P190 ?s . ?s rdf:type ontology:Q56061 . VALUES ( ?w ) { ( resource:Q1741 ) ( resource:Q5092 ) } }
Vienna Baltimore
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Vienna', 'sister city', {'concept': 'administrative territorial entity'}] ['Baltimore', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?w property:sister_city ?s . ?s rdf:type ontology:administrative_territorial_entity . VALUES ( ?w ) { ( resource:Vienna ) ( resource:Baltimore ) } }
[]
administrative territorial entity
Q649 Q1781 Q270
SYSTEM
Moscow, Budapest, Warsaw
Q1781 Q3711 Q33935 Q4656 Q649 Q472 Q270 Q1780 Q437 Q70 Q406 Q1874 Q15682 Q34370 Q130514 Q985291 Q87 Q58976 Q1083 Q1449 Q60956
(Q1741,P190,c(Q56061)) (Q5092,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS] are the sister cities of those ones
['Q1741', 'P190', {'concept': 'Q56061'}] ['Q5092', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?w property:P190 ?s . ?s rdf:type ontology:Q56061 . VALUES ( ?w ) { ( resource:Q1741 ) ( resource:Q5092 ) } }
Budapest Belgrade Tel Aviv Pula Moscow Sofia Warsaw Bratislava Ljubljana Bern Istanbul Odessa Cádiz Rotterdam Luxor Gbarnga Alexandria Piraeus Salerno Genoa Ashkelon
Moscow, Budapest and Warsaw are the sister cities of those ones
Moscow Budapest Warsaw
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Vienna', 'sister city', {'concept': 'administrative territorial entity'}] ['Baltimore', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?w property:sister_city ?s . ?s rdf:type ontology:administrative_territorial_entity . VALUES ( ?w ) { ( resource:Vienna ) ( resource:Baltimore ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q649 Q1781 Q270
P1376
Q15617994
USER
Which administrative territories have Moscow, Budapest and Warsaw as their county seat ?
(Q649,P1376,c(Q15617994)) (Q1781,P1376,c(Q15617994)) (Q270,P1376,c(Q15617994))
action union
action filter_type
action find
entity Q649
relation P1376
type Q15617994
action filter_type
action find
entity Q1781
relation P1376
type Q15617994
action filter_type
action find
entity Q270
relation P1376
type Q15617994
['Q649', 'P1376', {'concept': 'Q15617994'}] ['Q1781', 'P1376', {'concept': 'Q15617994'}] ['Q270', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { resource:Q649 property:P1376 ?a . ?a rdf:type ontology:Q15617994 } UNION { resource:Q1781 property:P1376 ?a . ?a rdf:type ontology:Q15617994 } }
Moscow Budapest Warsaw
action union
action filter_type
action find
entity Moscow
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Budapest
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Warsaw
relation capital of
type designation for an administrative territorial entity
['Moscow', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Budapest', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Warsaw', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { resource:Moscow property:capital_of ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Budapest property:capital_of ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q159 Q28 Q36
SYSTEM
Russia, Hungary, Poland
Q159 Q28 Q36
(Q649,P1376,c(Q15617994)) (Q1781,P1376,c(Q15617994)) (Q270,P1376,c(Q15617994))
action union
action filter_type
action find
entity Q649
relation P1376
type Q15617994
action filter_type
action find
entity Q1781
relation P1376
type Q15617994
action filter_type
action find
entity Q270
relation P1376
type Q15617994
[ANSWERS] have Moscow, Budapest and Warsaw as their county seat
['Q649', 'P1376', {'concept': 'Q15617994'}] ['Q1781', 'P1376', {'concept': 'Q15617994'}] ['Q270', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { resource:Q649 property:P1376 ?a . ?a rdf:type ontology:Q15617994 } UNION { resource:Q1781 property:P1376 ?a . ?a rdf:type ontology:Q15617994 } }
Russia Hungary Poland
Russia, Hungary and Poland have Moscow, Budapest and Warsaw as their county seat
Russia Hungary Poland
action union
action filter_type
action find
entity Moscow
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Budapest
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Warsaw
relation capital of
type designation for an administrative territorial entity
['Moscow', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Budapest', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Warsaw', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { resource:Moscow property:capital_of ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Budapest property:capital_of ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q159 Q28 Q36
P194
Q1752346
USER
Which assemblies represent Russia, Hungary and Poland ?
(Q159,P194,c(Q1752346)) (Q28,P194,c(Q1752346)) (Q36,P194,c(Q1752346))
action union
action filter_type
action find
entity Q159
relation P194
type Q1752346
action filter_type
action find
entity Q28
relation P194
type Q1752346
action filter_type
action find
entity Q36
relation P194
type Q1752346
['Q159', 'P194', {'concept': 'Q1752346'}] ['Q28', 'P194', {'concept': 'Q1752346'}] ['Q36', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?k WHERE { { resource:Q159 property:P194 ?k . ?k rdf:type ontology:Q1752346 } UNION { resource:Q28 property:P194 ?k . ?k rdf:type ontology:Q1752346 } }
Russia Hungary Poland
action union
action filter_type
action find
entity Russia
relation legislative body
type assembly
action filter_type
action find
entity Hungary
relation legislative body
type assembly
action filter_type
action find
entity Poland
relation legislative body
type assembly
['Russia', 'legislative body', {'concept': 'assembly'}] ['Hungary', 'legislative body', {'concept': 'assembly'}] ['Poland', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?k WHERE { { resource:Russia property:legislative_body ?k . ?k rdf:type ontology:assembly } UNION { resource:Hungary property:legislative_body ?k . ?k rdf:type ontology:assembly } }
[]
assembly
Q2358985 Q648716 Q2102558
SYSTEM
Congress of People's Deputies of Russia, National Assembly, Parliament of Poland
Q2358985 Q648716 Q2102558
(Q159,P194,c(Q1752346)) (Q28,P194,c(Q1752346)) (Q36,P194,c(Q1752346))
action union
action filter_type
action find
entity Q159
relation P194
type Q1752346
action filter_type
action find
entity Q28
relation P194
type Q1752346
action filter_type
action find
entity Q36
relation P194
type Q1752346
The [ANSWERS] represent Russia, Hungary and Poland
['Q159', 'P194', {'concept': 'Q1752346'}] ['Q28', 'P194', {'concept': 'Q1752346'}] ['Q36', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?k WHERE { { resource:Q159 property:P194 ?k . ?k rdf:type ontology:Q1752346 } UNION { resource:Q28 property:P194 ?k . ?k rdf:type ontology:Q1752346 } }
Congress of People's Deputies of Russia National Assembly Parliament of Poland
The Congress of People's Deputies of Russia, National Assembly and Parliament of Poland represent Russia, Hungary and Poland
Congress of People's Deputies of Russia National Assembly Parliament of Poland
action union
action filter_type
action find
entity Russia
relation legislative body
type assembly
action filter_type
action find
entity Hungary
relation legislative body
type assembly
action filter_type
action find
entity Poland
relation legislative body
type assembly
['Russia', 'legislative body', {'concept': 'assembly'}] ['Hungary', 'legislative body', {'concept': 'assembly'}] ['Poland', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?k WHERE { { resource:Russia property:legislative_body ?k . ?k rdf:type ontology:assembly } UNION { resource:Hungary property:legislative_body ?k . ?k rdf:type ontology:assembly } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q28
P47
Q15617994
USER
Which administrative territories are bordered by Hungary ?
(Q28,P47,c(Q15617994))
action filter_type
action find
entity Q28
relation P47
type Q15617994
['Q28', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q28 property:P47 ?x . ?x rdf:type ontology:Q15617994 }
Hungary
action filter_type
action find
entity Hungary
relation shares border with
type designation for an administrative territorial entity
['Hungary', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Hungary property:shares_border_with ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218 Q212 Q214
SYSTEM
Romania, Ukraine, Slovakia
Q212 Q224 Q214 Q215 Q218 Q403
(Q28,P47,c(Q15617994))
action filter_type
action find
entity Q28
relation P47
type Q15617994
[ANSWERS] are bordered by Hungary
['Q28', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q28 property:P47 ?x . ?x rdf:type ontology:Q15617994 }
Ukraine Croatia Slovakia Slovenia Romania Serbia
Romania, Ukraine and Slovakia are bordered by Hungary
Romania Ukraine Slovakia
action filter_type
action find
entity Hungary
relation shares border with
type designation for an administrative territorial entity
['Hungary', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Hungary property:shares_border_with ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q214
P17
Q15617994
USER
Which administrative territory is that one located in ?
(Q214,P17,c(Q15617994))
action filter_type
action find
entity Q214
relation P17
type Q15617994
['Q214', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q214 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Slovakia
action filter_type
action find
entity Slovakia
relation country
type designation for an administrative territorial entity
['Slovakia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Slovakia property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q212
SYSTEM
Did you mean Ukraine ?
Q218 Q212 Q214
(Q218,P17,c(Q15617994)) (Q212,P17,c(Q15617994)) (Q214,P17,c(Q15617994))
[ANSWER]
['Q218', 'P17', {'concept': 'Q15617994'}] ['Q212', 'P17', {'concept': 'Q15617994'}] ['Q214', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q214 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Romania Ukraine Slovakia
Did you mean Ukraine ?
Ukraine
['Romania', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Ukraine', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Slovakia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Slovakia property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Slovakia. Could you tell me the answer for that?
(Q214,P17,c(Q15617994))
Q214
['Q214', 'P17', {'concept': 'Q15617994'}]
['Slovakia', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q214
SYSTEM
Slovakia
Q214
(Q214,P17,c(Q15617994))
action filter_type
action find
entity Q214
relation P17
type Q15617994
That one is located in [ANSWER]
['Q214', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q214 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Slovakia
That one is located in Slovakia
Slovakia
action filter_type
action find
entity Slovakia
relation country
type designation for an administrative territorial entity
['Slovakia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Slovakia property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]