Simple Question (Direct)
Simple Question
Q99192
P20
Q486972
USER
Where did Johannes Lange die ?
(Q99192,P20,c(Q486972))
action filter_type
action find
entity Q99192
relation P20
type Q486972
['Q99192', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?x WHERE { resource:Q99192 property:P20 ?x . ?x rdf:type ontology:Q486972 }
Johannes Lange
action filter_type
action find
entity Johannes Lange
relation place of death
type human settlement
['Johannes Lange', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?x WHERE { resource:Johannes_Lange property:place_of_death ?x . ?x rdf:type ontology:human_settlement }
[]
human settlement
Q1799
SYSTEM
Wrocław
Q1799
(Q99192,P20,c(Q486972))
action filter_type
action find
entity Q99192
relation P20
type Q486972
Johannes Lange died [ANSWER]
['Q99192', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?x WHERE { resource:Q99192 property:P20 ?x . ?x rdf:type ontology:Q486972 }
Wrocław
Johannes Lange died Wrocław
Wrocław
action filter_type
action find
entity Johannes Lange
relation place of death
type human settlement
['Johannes Lange', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?x WHERE { resource:Johannes_Lange property:place_of_death ?x . ?x rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q99192
P937
Q486972
USER
Where did that person work ?
(Q1799,P937,c(Q486972))
action filter_type
action find
entity Q99192
relation P937
type Q486972
['Q1799', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?q WHERE { resource:Q99192 property:P937 ?q . ?q rdf:type ontology:Q486972 }
Johannes Lange
action filter_type
action find
entity Johannes Lange
relation work location
type human settlement
['Wrocław', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?q WHERE { resource:Johannes_Lange property:work_location ?q . ?q rdf:type ontology:human_settlement }
[]
human settlement
Q252119
SYSTEM
Schwabing
Q252119
(Q1799,P937,c(Q486972))
action filter_type
action find
entity Q99192
relation P937
type Q486972
That person worked in [ANSWER]
['Q1799', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?q WHERE { resource:Q99192 property:P937 ?q . ?q rdf:type ontology:Q486972 }
Schwabing
That person worked in Schwabing
Schwabing
action filter_type
action find
entity Johannes Lange
relation work location
type human settlement
['Wrocław', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?q WHERE { resource:Johannes_Lange property:work_location ?q . ?q rdf:type ontology:human_settlement }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1799 Q63896
P915
Q838948
USER
How many works of art had Wrocław or Delémont as their location of filming ?
(c(Q838948),P915,Q1799) (c(Q838948),P915,Q63896)
action count
action union
action filter_type
action find_reverse
entity Q1799
relation P915
type Q838948
action filter_type
action find_reverse
entity Q63896
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q1799'] [{'concept': 'Q838948'}, 'P915', 'Q63896']
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { VALUES ( ?s ) { ( resource:Q1799 ) ( resource:Q63896 ) } . ?f property:P915 ?s }
Wrocław Delémont
action count
action union
action filter_type
action find_reverse
entity Wrocław
relation filming location
type work of art
action filter_type
action find_reverse
entity Delémont
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Wrocław'] [{'concept': 'work of art'}, 'filming location', 'Delémont']
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { VALUES ( ?s ) { ( resource:Wrocław ) ( resource:Delémont ) } . ?f property:filming_location ?s }
[]
work of art
SYSTEM
2
Q18067135 Q17984045
(c(Q838948),P915,Q1799) (c(Q838948),P915,Q63896)
action count
action union
action filter_type
action find_reverse
entity Q1799
relation P915
type Q838948
action filter_type
action find_reverse
entity Q63896
relation P915
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P915', 'Q1799'] [{'concept': 'Q838948'}, 'P915', 'Q63896']
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { VALUES ( ?s ) { ( resource:Q1799 ) ( resource:Q63896 ) } . ?f property:P915 ?s }
Bridge of Spies Win Win
2
action count
action union
action filter_type
action find_reverse
entity Wrocław
relation filming location
type work of art
action filter_type
action find_reverse
entity Delémont
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Wrocław'] [{'concept': 'work of art'}, 'filming location', 'Delémont']
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { VALUES ( ?s ) { ( resource:Wrocław ) ( resource:Delémont ) } . ?f property:filming_location ?s }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q507194 Q1799
P190
Q56061
USER
Which administrative territories are sister towns of Wrocław or Friedberg ?
OR((Q1799,P190,c(Q56061)), (Q507194,P190,c(Q56061)))
action filter_type
action union
action find
entity Q1799
relation P190
action find
entity Q507194
relation P190
type Q56061
{'OR': [['Q1799', 'P190', {'concept': 'Q56061'}], ['Q507194', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1799 property:P190 ?g } UNION { resource:Q507194 property:P190 ?g } } . ?g rdf:type ontology:Q56061 }
Friedberg Wrocław
action filter_type
action union
action find
entity Wrocław
relation sister city
action find
entity Friedberg
relation sister city
type administrative territorial entity
{'OR': [['Wrocław', 'sister city', {'concept': 'administrative territorial entity'}], ['Friedberg', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Wrocław property:sister_city ?g } UNION { resource:Friedberg property:sister_city ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q192807 Q384 Q180139 Q936780 Q181376 Q36036 Q4115712 Q648 Q775299 Q381366
SYSTEM
Some of them are Ramat Gan, Skopje, Hradec Králové, La Crosse, Grodno, Lviv, Kaunas, Lille, Chippenham, Völs am Schlern
Q40844 Q381366 Q180139 Q936780 Q648 Q181376 Q775299 Q384 Q4115712 Q192807 Q36036
OR((Q1799,P190,c(Q56061)), (Q507194,P190,c(Q56061)))
action filter_type
action union
action find
entity Q1799
relation P190
action find
entity Q507194
relation P190
type Q56061
[ANSWERS] are sister towns of Wrocław or Friedberg
{'OR': [['Q1799', 'P190', {'concept': 'Q56061'}], ['Q507194', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1799 property:P190 ?g } UNION { resource:Q507194 property:P190 ?g } } . ?g rdf:type ontology:Q56061 }
Breda Völs am Schlern Hradec Králové La Crosse Lille Grodno Chippenham Skopje Kaunas Ramat Gan Lviv
Ramat Gan, Skopje, Hradec Králové, La Crosse, Grodno, Lviv, Kaunas, Lille, Chippenham and Völs am Schlern are sister towns of Wrocław or Friedberg
Ramat Gan Skopje Hradec Králové La Crosse Grodno Lviv Kaunas Lille Chippenham Völs am Schlern
action filter_type
action union
action find
entity Wrocław
relation sister city
action find
entity Friedberg
relation sister city
type administrative territorial entity
{'OR': [['Wrocław', 'sister city', {'concept': 'administrative territorial entity'}], ['Friedberg', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Wrocław property:sister_city ?g } UNION { resource:Friedberg property:sister_city ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P190
Q56061
USER
How many administrative territories are partner towns of that administrative territory ?
(Q648,P190,c(Q56061))
['Q648', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q725235 property:P190 ?z . ?z rdf:type ontology:Q56061 }
['Lille', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Lille property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q181376
SYSTEM
Did you mean Grodno ?
(Q192807,P190,c(Q56061)) (Q384,P190,c(Q56061)) (Q180139,P190,c(Q56061)) (Q936780,P190,c(Q56061)) (Q181376,P190,c(Q56061)) (Q36036,P190,c(Q56061)) (Q4115712,P190,c(Q56061)) (Q648,P190,c(Q56061)) (Q775299,P190,c(Q56061)) (Q381366,P190,c(Q56061))
[ANSWER]
['Q192807', 'P190', {'concept': 'Q56061'}] ['Q384', 'P190', {'concept': 'Q56061'}] ['Q180139', 'P190', {'concept': 'Q56061'}] ['Q936780', 'P190', {'concept': 'Q56061'}] ['Q181376', 'P190', {'concept': 'Q56061'}] ['Q36036', 'P190', {'concept': 'Q56061'}] ['Q4115712', 'P190', {'concept': 'Q56061'}] ['Q648', 'P190', {'concept': 'Q56061'}] ['Q775299', 'P190', {'concept': 'Q56061'}] ['Q381366', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q725235 property:P190 ?z . ?z rdf:type ontology:Q56061 }
Did you mean Grodno ?
Grodno
['Ramat Gan', 'sister city', {'concept': 'administrative territorial entity'}] ['Skopje', 'sister city', {'concept': 'administrative territorial entity'}] ['Hradec Králové', 'sister city', {'concept': 'administrative territorial entity'}] ['La Crosse', 'sister city', {'concept': 'administrative territorial entity'}] ['Grodno', 'sister city', {'concept': 'administrative territorial entity'}] ['Lviv', 'sister city', {'concept': 'administrative territorial entity'}] ['Kaunas', 'sister city', {'concept': 'administrative territorial entity'}] ['Lille', 'sister city', {'concept': 'administrative territorial entity'}] ['Chippenham', 'sister city', {'concept': 'administrative territorial entity'}] ['Völs am Schlern', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Lille property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Lille. Could you tell me the answer for that?
(Q648,P190,c(Q56061))
Q648
['Q648', 'P190', {'concept': 'Q56061'}]
['Lille', 'sister city', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
14
Q3992 Q39121 Q273779 Q16010 Q193802 Q214178 Q188336 Q42308 Q365 Q495 Q34370 Q8686 Q8356 Q1729
(Q648,P190,c(Q56061))
[ANSWER]
['Q648', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q725235 property:P190 ?z . ?z rdf:type ontology:Q56061 }
Liège Leeds Saint-Louis Esch-sur-Alzette Oujda Nablus Safed Kharkiv Cologne Turin Rotterdam Shanghai Valladolid Erfurt
14
['Lille', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Lille property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q9016119 Q384
P27 P1376
Q15617994
USER
Which administrative territories have Skopje as their county seat or are the countries of citizenship of Juan de Icíar ?
OR((Q384,P1376,c(Q15617994)), (Q9016119,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q384
relation P1376
action find
entity Q9016119
relation P27
type Q15617994
{'OR': [['Q384', 'P1376', {'concept': 'Q15617994'}], ['Q9016119', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q384 property:P1376 ?o } UNION { resource:Q9016119 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Juan de Icíar Skopje
action filter_type
action union
action find
entity Skopje
relation capital of
action find
entity Juan de Icíar
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Skopje', 'capital of', {'concept': 'designation for an administrative territorial entity'}], ['Juan de Icíar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Skopje property:capital_of ?o } UNION { resource:Juan_de_Icíar property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q221
SYSTEM
Spain, Republic of Macedonia
Q29 Q221
OR((Q384,P1376,c(Q15617994)), (Q9016119,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q384
relation P1376
action find
entity Q9016119
relation P27
type Q15617994
[ANSWERS] have Skopje as their county seat or are the countries of citizenship of Juan de Icíar
{'OR': [['Q384', 'P1376', {'concept': 'Q15617994'}], ['Q9016119', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q384 property:P1376 ?o } UNION { resource:Q9016119 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Spain Republic of Macedonia
Spain and Republic of Macedonia have Skopje as their county seat or are the countries of citizenship of Juan de Icíar
Spain Republic of Macedonia
action filter_type
action union
action find
entity Skopje
relation capital of
action find
entity Juan de Icíar
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Skopje', 'capital of', {'concept': 'designation for an administrative territorial entity'}], ['Juan de Icíar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Skopje property:capital_of ?o } UNION { resource:Juan_de_Icíar property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q29 Q221
P463
Q874405
USER
What social groups were Spain and Republic of Macedonia a member of ?
(Q29,P463,c(Q874405)) (Q221,P463,c(Q874405))
action union
action filter_type
action find
entity Q29
relation P463
type Q874405
action filter_type
action find
entity Q221
relation P463
type Q874405
['Q29', 'P463', {'concept': 'Q874405'}] ['Q221', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?w WHERE { ?l property:P463 ?w . VALUES ( ?l ) { ( resource:Q221 ) ( resource:Q29 ) } }
Spain Republic of Macedonia
action union
action filter_type
action find
entity Spain
relation member of
type social group
action filter_type
action find
entity Republic of Macedonia
relation member of
type social group
['Spain', 'member of', {'concept': 'social group'}] ['Republic of Macedonia', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?w WHERE { ?l property:member_of ?w . VALUES ( ?l ) { ( resource:Republic_of_Macedonia ) ( resource:Spain ) } }
[]
social group
Q8908 Q8908 Q38130
SYSTEM
Council of Europe for 1st, 2nd, League of Nations for 3rd
Q38130 Q782942 Q8908 Q8908
(Q29,P463,c(Q874405)) (Q221,P463,c(Q874405))
action union
action filter_type
action find
entity Q29
relation P463
type Q874405
action filter_type
action find
entity Q221
relation P463
type Q874405
[ANSWERS]
['Q29', 'P463', {'concept': 'Q874405'}] ['Q221', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?w WHERE { ?l property:P463 ?w . VALUES ( ?l ) { ( resource:Q221 ) ( resource:Q29 ) } }
League of Nations Australia Group Council of Europe Council of Europe
Council of Europe, Council of Europe and League of Nations were Spain and Republic of Macedonia a member of
Council of Europe Council of Europe League of Nations
action union
action filter_type
action find
entity Spain
relation member of
type social group
action filter_type
action find
entity Republic of Macedonia
relation member of
type social group
['Spain', 'member of', {'concept': 'social group'}] ['Republic of Macedonia', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?w WHERE { ?l property:member_of ?w . VALUES ( ?l ) { ( resource:Republic_of_Macedonia ) ( resource:Spain ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1799
P291
Q1914636
USER
Which activity has Wrocław as its release location ?
(c(Q1914636),P291,Q1799)
action filter_type
action find_reverse
entity Q1799
relation P291
type Q1914636
[{'concept': 'Q1914636'}, 'P291', 'Q1799']
SELECT DISTINCT ?i WHERE { ?i property:P291 resource:Q1799 . ?i rdf:type ontology:Q1914636 }
Wrocław
action filter_type
action find_reverse
entity Wrocław
relation place of publication
type activity
[{'concept': 'activity'}, 'place of publication', 'Wrocław']
SELECT DISTINCT ?i WHERE { ?i property:place_of_publication resource:Wrocław . ?i rdf:type ontology:activity }
[]
activity
Q26156227
SYSTEM
Bedřicha Šillera Básně lyrické
Q26156227
(c(Q1914636),P291,Q1799)
action filter_type
action find_reverse
entity Q1799
relation P291
type Q1914636
[ANSWER] has Wrocław as its release location
[{'concept': 'Q1914636'}, 'P291', 'Q1799']
SELECT DISTINCT ?i WHERE { ?i property:P291 resource:Q1799 . ?i rdf:type ontology:Q1914636 }
Bedřicha Šillera Básně lyrické
Bedřicha Šillera Básně lyrické has Wrocław as its release location
Bedřicha Šillera Básně lyrické
action filter_type
action find_reverse
entity Wrocław
relation place of publication
type activity
[{'concept': 'activity'}, 'place of publication', 'Wrocław']
SELECT DISTINCT ?i WHERE { ?i property:place_of_publication resource:Wrocław . ?i rdf:type ontology:activity }
[]