Simple Question (Direct)
Simple Question
Q1608577
P27
Q1048835
USER
Which political territory is Herbert Kasten an inhabitant of ?
(Q1608577,P27,c(Q1048835))
action filter_type
action find
entity Q1608577
relation P27
type Q1048835
['Q1608577', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q1048835 . resource:Q1608577 property:P27 ?g }
Herbert Kasten
action filter_type
action find
entity Herbert Kasten
relation country of citizenship
type political territorial entity
['Herbert Kasten', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:political_territorial_entity . resource:Herbert_Kasten property:country_of_citizenship ?g }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1608577,P27,c(Q1048835))
action filter_type
action find
entity Q1608577
relation P27
type Q1048835
[ANSWER] is Herbert Kasten an inhabitant of
['Q1608577', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q1048835 . resource:Q1608577 property:P27 ?g }
Germany
Germany is Herbert Kasten an inhabitant of
Germany
action filter_type
action find
entity Herbert Kasten
relation country of citizenship
type political territorial entity
['Herbert Kasten', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:political_territorial_entity . resource:Herbert_Kasten property:country_of_citizenship ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1608577
P19
Q56061
USER
Where was Herbert Kasten born ?
(Q1608577,P19,c(Q56061))
action filter_type
action find
entity Q1608577
relation P19
type Q56061
['Q1608577', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . resource:Q1608577 property:P19 ?o }
Herbert Kasten
action filter_type
action find
entity Herbert Kasten
relation place of birth
type administrative territorial entity
['Herbert Kasten', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . resource:Herbert_Kasten property:place_of_birth ?o }
[]
administrative territorial entity
Q4065
SYSTEM
Stralsund
Q4065
(Q1608577,P19,c(Q56061))
action filter_type
action find
entity Q1608577
relation P19
type Q56061
Herbert Kasten was born in [ANSWER]
['Q1608577', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . resource:Q1608577 property:P19 ?o }
Stralsund
Herbert Kasten was born in Stralsund
Stralsund
action filter_type
action find
entity Herbert Kasten
relation place of birth
type administrative territorial entity
['Herbert Kasten', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . resource:Herbert_Kasten property:place_of_birth ?o }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21039727
Q56061
USER
And what about Julie Mathilde Lippmann?
(Q21039727,P19,c(Q56061))
action filter_type
action find
entity Q21039727
relation P19
type Q56061
['Q21039727', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q21039727 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Julie Mathilde Lippmann
action filter_type
action find
entity Julie Mathilde Lippmann
relation place of birth
type administrative territorial entity
['Julie Mathilde Lippmann', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Julie_Mathilde_Lippmann property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q18419
SYSTEM
Brooklyn
Q18419
(Q21039727,P19,c(Q56061))
action filter_type
action find
entity Q21039727
relation P19
type Q56061
[ANSWER]
['Q21039727', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q21039727 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Brooklyn
Brooklyn
action filter_type
action find
entity Julie Mathilde Lippmann
relation place of birth
type administrative territorial entity
['Julie Mathilde Lippmann', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Julie_Mathilde_Lippmann property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q18419 Q5534912
P19
Q502895
USER
Does Geoffrey Stevens have place of birth as that administrative territory ?
(Q5534912,P19,Q18419)
action is_in
entity Q5534912
action find
entity Q18419
relation P19
['Q5534912', 'P19', 'Q18419']
ASK WHERE { resource:Q18419 property:P19 resource:Q5534912 }
Brooklyn Geoffrey Stevens
action is_in
entity Geoffrey Stevens
action find
entity Brooklyn
relation place of birth
['Geoffrey Stevens', 'place of birth', 'Brooklyn']
ASK WHERE { resource:Brooklyn property:place_of_birth resource:Geoffrey_Stevens }
[]
common name
SYSTEM
NO
(Q5534912,P19,Q18419)
action is_in
entity Q5534912
action find
entity Q18419
relation P19
[ANSWER]
['Q5534912', 'P19', 'Q18419']
ASK WHERE { resource:Q18419 property:P19 resource:Q5534912 }
No
action is_in
entity Geoffrey Stevens
action find
entity Brooklyn
relation place of birth
['Geoffrey Stevens', 'place of birth', 'Brooklyn']
ASK WHERE { resource:Brooklyn property:place_of_birth resource:Geoffrey_Stevens }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q4065 Q183
P17
Q1048835
USER
Is Stralsund situated in Germany ?
(Q4065,P17,Q183)
action is_in
entity Q183
action find
entity Q4065
relation P17
['Q4065', 'P17', 'Q183']
ASK WHERE { resource:Q4065 property:P17 resource:Q183 }
Stralsund Germany
action is_in
entity Germany
action find
entity Stralsund
relation country
['Stralsund', 'country', 'Germany']
ASK WHERE { resource:Stralsund property:country resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q4065,P17,Q183)
action is_in
entity Q183
action find
entity Q4065
relation P17
[ANSWER]
['Q4065', 'P17', 'Q183']
ASK WHERE { resource:Q4065 property:P17 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Stralsund
relation country
['Stralsund', 'country', 'Germany']
ASK WHERE { resource:Stralsund property:country resource:Germany }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q8030060 Q1608577
P20
Q56061
USER
Which administrative territories did the demise of Herbert Kasten or Wolfgang Ewald occur ?
OR((Q1608577,P20,c(Q56061)), (Q8030060,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1608577
relation P20
action find
entity Q8030060
relation P20
type Q56061
{'OR': [['Q1608577', 'P20', {'concept': 'Q56061'}], ['Q8030060', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . { { resource:Q1608577 property:P20 ?k } UNION { resource:Q8030060 property:P20 ?k } } }
Wolfgang Ewald Herbert Kasten
action filter_type
action union
action find
entity Herbert Kasten
relation place of death
action find
entity Wolfgang Ewald
relation place of death
type administrative territorial entity
{'OR': [['Herbert Kasten', 'place of death', {'concept': 'administrative territorial entity'}], ['Wolfgang Ewald', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . { { resource:Herbert_Kasten property:place_of_death ?k } UNION { resource:Wolfgang_Ewald property:place_of_death ?k } } }
[]
administrative territorial entity
Q7010 Q1715
SYSTEM
Leonberg, Hanover
Q7010 Q1715
OR((Q1608577,P20,c(Q56061)), (Q8030060,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1608577
relation P20
action find
entity Q8030060
relation P20
type Q56061
The demise of Herbert Kasten or Wolfgang Ewald occurred in [ANSWERS]
{'OR': [['Q1608577', 'P20', {'concept': 'Q56061'}], ['Q8030060', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . { { resource:Q1608577 property:P20 ?k } UNION { resource:Q8030060 property:P20 ?k } } }
Leonberg Hanover
The demise of Herbert Kasten or Wolfgang Ewald occurred in Leonberg and Hanover
Leonberg Hanover
action filter_type
action union
action find
entity Herbert Kasten
relation place of death
action find
entity Wolfgang Ewald
relation place of death
type administrative territorial entity
{'OR': [['Herbert Kasten', 'place of death', {'concept': 'administrative territorial entity'}], ['Wolfgang Ewald', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . { { resource:Herbert_Kasten property:place_of_death ?k } UNION { resource:Wolfgang_Ewald property:place_of_death ?k } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q7010
P21 P20
Q502895
USER
Which people expired at Leonberg and have the gender as male ?
AND((c(Q502895),P20,Q7010), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7010
relation P20
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P20', 'Q7010'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?y WHERE { ?y property:P20 resource:Q7010 . ?y property:P21 resource:Q6581097 . ?y rdf:type ontology:Q502895 }
male Leonberg
action filter_type
action intersection
action find_reverse
entity Leonberg
relation place of death
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of death', 'Leonberg'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?y WHERE { ?y property:place_of_death resource:Leonberg . ?y property:gender resource:male . ?y rdf:type ontology:common_name }
[]
common name
Q247209 Q762867 Q2041291 Q1703292 Q106256 Q1556810 Q8030060 Q19574021 Q1633162 Q1334847
SYSTEM
Some of them are Ulrich V, Count of Württemberg, August Lämmle, Otto Rohr, Jonathan Roth, Sigurd Abel, Paul Wolf, Wolfgang Ewald, Walter Blümel, Hubert Giesen, Johannes Böhm
Q1579686 Q1612355 Q1334847 Q762867 Q1512607 Q1556810 Q247209 Q106256 Q2041291 Q64412 Q19574021 Q86426 Q1252833 Q2337789 Q1597170 Q8030060 Q1633162 Q1703292 Q362863 Q98560
AND((c(Q502895),P20,Q7010), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7010
relation P20
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] expired at Leonberg and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P20', 'Q7010'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?y WHERE { ?y property:P20 resource:Q7010 . ?y property:P21 resource:Q6581097 . ?y rdf:type ontology:Q502895 }
Hans Geiger Hermann Pirich Johannes Böhm August Lämmle Gerhard Storz Paul Wolf Ulrich V, Count of Württemberg Sigurd Abel Otto Rohr Frei Otto Walter Blümel Heinrich Friedrich Otto Abel Franz Villinger Stefan Terzibaschitsch Heinrich Essig Wolfgang Ewald Hubert Giesen Jonathan Roth Adolf Kabatek Christian Wagner
Ulrich V, Count of Württemberg, August Lämmle, Otto Rohr, Jonathan Roth, Sigurd Abel, Paul Wolf, Wolfgang Ewald, Walter Blümel, Hubert Giesen and Johannes Böhm expired at Leonberg and have the gender as male
Ulrich V, Count of Württemberg August Lämmle Otto Rohr Jonathan Roth Sigurd Abel Paul Wolf Wolfgang Ewald Walter Blümel Hubert Giesen Johannes Böhm
action filter_type
action intersection
action find_reverse
entity Leonberg
relation place of death
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of death', 'Leonberg'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?y WHERE { ?y property:place_of_death resource:Leonberg . ?y property:gender resource:male . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q4065 Q83324
P937
Q502895
USER
How many people have Stralsund or Sibiu as work location ?
(c(Q502895),P937,Q4065) (c(Q502895),P937,Q83324)
action count
action union
action filter_type
action find_reverse
entity Q4065
relation P937
type Q502895
action filter_type
action find_reverse
entity Q83324
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q4065'] [{'concept': 'Q502895'}, 'P937', 'Q83324']
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { ?r property:P937 resource:Q83324 . ?r rdf:type ontology:Q502895 } UNION { ?r property:P937 resource:Q4065 . ?r rdf:type ontology:Q502895 } }
Stralsund Sibiu
action count
action union
action filter_type
action find_reverse
entity Stralsund
relation work location
type common name
action filter_type
action find_reverse
entity Sibiu
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Stralsund'] [{'concept': 'common name'}, 'work location', 'Sibiu']
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { ?r property:work_location resource:Sibiu . ?r rdf:type ontology:common_name } UNION { ?r property:work_location resource:Stralsund . ?r rdf:type ontology:common_name } }
[]
common name
SYSTEM
62
Q106876 Q1688252 Q1281837 Q809375 Q1284953 Q96127 Q88848 Q2301738 Q19959681 Q1735865 Q768854 Q1577404 Q1084513 Q1101106 Q15130191 Q2163740 Q1333217 Q18145322 Q1080857 Q18342702 Q2038730 Q2038488 Q1596861 Q1281658 Q1079395 Q126221 Q1079393 Q67485 Q694926 Q1801398 Q15451256 Q1465476 Q1703023 Q2063741 Q1564442 Q114858 Q1582893 Q1544585 Q119250 Q88425 Q15451055 Q1504037 Q805646 Q105181 Q1714538 Q2172372 Q1038830 Q15449335 Q1991578 Q1606806 Q1449435 Q1772581 Q1692668 Q1986907 Q1373735 Q1690042 Q15455968 Q1320727 Q1506490 Q1406162 Q329470 Q541100
(c(Q502895),P937,Q4065) (c(Q502895),P937,Q83324)
action count
action union
action filter_type
action find_reverse
entity Q4065
relation P937
type Q502895
action filter_type
action find_reverse
entity Q83324
relation P937
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P937', 'Q4065'] [{'concept': 'Q502895'}, 'P937', 'Q83324']
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { ?r property:P937 resource:Q83324 . ?r rdf:type ontology:Q502895 } UNION { ?r property:P937 resource:Q4065 . ?r rdf:type ontology:Q502895 } }
Wilhelm Staedel Käthe Rieck Gottlieb August Lange Bartholomäus Sastrow Edith Dettmann Hermann Masius Hans Bergel Sonja Steffen Johannes von Gruber Katharina Bamberg Augustin Balthasar Hans-Joachim Marx Christoph Andreas Büttner Johann Ludwig Neugeboren Laurențiu Streza Rolf Reinicke Martin Gülzow Hieronymus Johann Struck Christian Lokervitz Rudolf Eisenmenger Otto Francke Otto Dibbelt Heinrich Buchow Eckhard Buchholz Christian Ehrenfried Charisius Adolf Gideon Bartholdi Christian Ehrenfried Charisius von Olthoff Heinrich Berghaus Arnold Brandenburg Lambert Steinwich Karl Reinerth Fritz Adler Jonas Staude Paulina Schulz Wilhelm Hahn Ulrich von Behr-Negendank Hans Vogt Max Bruhn Peter Friedrich Arndt Ludwig Ernst Hahn Michael Meder Georg Detharding Balthasar Rhaw Erwin Wittstock Justus Ludwig Olthoff Rudolf Baier Carl Heydemann Michael Hayduck Nikolaus Lilienfeld Rudolf Peppmüller Franz Wessel Sabel Siegfried Johann Berckmann Nicolaus Baumann Nikolaus Gentzkow Joachim Drenckhan Wilhelm Cornelius Otto Kortüm Harald J. Freyberger Ralf Lehm Johann Fischer Elisabeth Büchsel
62
action count
action union
action filter_type
action find_reverse
entity Stralsund
relation work location
type common name
action filter_type
action find_reverse
entity Sibiu
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Stralsund'] [{'concept': 'common name'}, 'work location', 'Sibiu']
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { ?r property:work_location resource:Sibiu . ?r rdf:type ontology:common_name } UNION { ?r property:work_location resource:Stralsund . ?r rdf:type ontology:common_name } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q20088803 Q21039727
P27
Q15617994
USER
Which administrative territories do Julie Mathilde Lippmann or Chenrop Samphaodi belong to ?
OR((Q21039727,P27,c(Q15617994)), (Q20088803,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q21039727
relation P27
action find
entity Q20088803
relation P27
type Q15617994
{'OR': [['Q21039727', 'P27', {'concept': 'Q15617994'}], ['Q20088803', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . { VALUES ( ?l ) { ( resource:Q21039727 ) ( resource:Q20088803 ) } . ?l property:P27 ?s } }
Chenrop Samphaodi Julie Mathilde Lippmann
action filter_type
action union
action find
entity Julie Mathilde Lippmann
relation country of citizenship
action find
entity Chenrop Samphaodi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Julie Mathilde Lippmann', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Chenrop Samphaodi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?l ) { ( resource:Julie_Mathilde_Lippmann ) ( resource:Chenrop_Samphaodi ) } . ?l property:country_of_citizenship ?s } }
[]
designation for an administrative territorial entity
Q869 Q30
SYSTEM
Thailand, United States of America
Q869 Q30
OR((Q21039727,P27,c(Q15617994)), (Q20088803,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q21039727
relation P27
action find
entity Q20088803
relation P27
type Q15617994
[ANSWERS] Julie Mathilde Lippmann or Chenrop Samphaodi belong to
{'OR': [['Q21039727', 'P27', {'concept': 'Q15617994'}], ['Q20088803', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . { VALUES ( ?l ) { ( resource:Q21039727 ) ( resource:Q20088803 ) } . ?l property:P27 ?s } }
Thailand United States of America
Thailand and United States of America Julie Mathilde Lippmann or Chenrop Samphaodi belong to
Thailand United States of America
action filter_type
action union
action find
entity Julie Mathilde Lippmann
relation country of citizenship
action find
entity Chenrop Samphaodi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Julie Mathilde Lippmann', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Chenrop Samphaodi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?l ) { ( resource:Julie_Mathilde_Lippmann ) ( resource:Chenrop_Samphaodi ) } . ?l property:country_of_citizenship ?s } }
[]