Simple Question (Direct)
Simple Question
Q26196922
P119
Q43229
USER
Where was Paul Horn buried ?
(Q26196922,P119,c(Q43229))
action filter_type
action find
entity Q26196922
relation P119
type Q43229
['Q26196922', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?m WHERE { resource:Q26196922 property:P119 ?m . ?m rdf:type ontology:Q43229 }
Paul Horn
action filter_type
action find
entity Paul Horn
relation place of burial
type organization
['Paul Horn', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?m WHERE { resource:Paul_Horn property:place_of_burial ?m . ?m rdf:type ontology:organization }
[]
organization
Q10792367
SYSTEM
Hauptfriedhof Ravensburg
Q10792367
(Q26196922,P119,c(Q43229))
action filter_type
action find
entity Q26196922
relation P119
type Q43229
Paul Horn was buried at [ANSWER]
['Q26196922', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?m WHERE { resource:Q26196922 property:P119 ?m . ?m rdf:type ontology:Q43229 }
Hauptfriedhof Ravensburg
Paul Horn was buried at Hauptfriedhof Ravensburg
Hauptfriedhof Ravensburg
action filter_type
action find
entity Paul Horn
relation place of burial
type organization
['Paul Horn', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?m WHERE { resource:Paul_Horn property:place_of_burial ?m . ?m rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10792367
P17
Q1048835
USER
Which political territory is that organization situated in ?
(Q10792367,P17,c(Q1048835))
action filter_type
action find
entity Q10792367
relation P17
type Q1048835
['Q10792367', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q10792367 property:P17 ?a . ?a rdf:type ontology:Q1048835 }
Hauptfriedhof Ravensburg
action filter_type
action find
entity Hauptfriedhof Ravensburg
relation country
type political territorial entity
['Hauptfriedhof Ravensburg', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Hauptfriedhof_Ravensburg property:country ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q10792367,P17,c(Q1048835))
action filter_type
action find
entity Q10792367
relation P17
type Q1048835
That organization is situated in [ANSWER]
['Q10792367', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q10792367 property:P17 ?a . ?a rdf:type ontology:Q1048835 }
Germany
That organization is situated in Germany
Germany
action filter_type
action find
entity Hauptfriedhof Ravensburg
relation country
type political territorial entity
['Hauptfriedhof Ravensburg', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Hauptfriedhof_Ravensburg property:country ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q20184638
P27
Q502895
USER
Is Jo Ellen Look a civilian of that political territory ?
(Q20184638,P27,Q183)
action is_in
entity Q183
action find
entity Q20184638
relation P27
['Q20184638', 'P27', 'Q183']
ASK WHERE { resource:Q20184638 property:P27 resource:Q183 }
Germany Jo Ellen Look
action is_in
entity Germany
action find
entity Jo Ellen Look
relation country of citizenship
['Jo Ellen Look', 'country of citizenship', 'Germany']
ASK WHERE { resource:Jo_Ellen_Look property:country_of_citizenship resource:Germany }
[]
common name
SYSTEM
YES
(Q20184638,P27,Q183)
action is_in
entity Q183
action find
entity Q20184638
relation P27
[ANSWER]
['Q20184638', 'P27', 'Q183']
ASK WHERE { resource:Q20184638 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Jo Ellen Look
relation country of citizenship
['Jo Ellen Look', 'country of citizenship', 'Germany']
ASK WHERE { resource:Jo_Ellen_Look property:country_of_citizenship resource:Germany }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q237
P530
Q15617994
USER
How many administrative territories have diplomatic relations with Germany and Vatican City ?
(Q183,P530,c(Q15617994)) (Q237,P530,c(Q15617994))
action count
action intersection
action filter_type
action find
entity Q183
relation P530
type Q15617994
action filter_type
action find
entity Q237
relation P530
type Q15617994
['Q183', 'P530', {'concept': 'Q15617994'}] ['Q237', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { resource:Q183 property:P530 ?g . ?g rdf:type ontology:Q15617994 . resource:Q237 property:P530 ?g . ?g rdf:type ontology:Q15617994 }
Germany Vatican City
action count
action intersection
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Vatican City
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Vatican City', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { resource:Germany property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Vatican_City property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
2
Q142 Q801
(Q183,P530,c(Q15617994)) (Q237,P530,c(Q15617994))
action count
action intersection
action filter_type
action find
entity Q183
relation P530
type Q15617994
action filter_type
action find
entity Q237
relation P530
type Q15617994
[ANSWER]
['Q183', 'P530', {'concept': 'Q15617994'}] ['Q237', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { resource:Q183 property:P530 ?g . ?g rdf:type ontology:Q15617994 . resource:Q237 property:P530 ?g . ?g rdf:type ontology:Q15617994 }
France Israel
2
action count
action intersection
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Vatican City
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Vatican City', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { resource:Germany property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Vatican_City property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relations with max number of political territories ?
(c(Q1048835),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?n ) WHERE { ?r rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 . ?r property:P530 ?t } GROUP BY ?r } } . FILTER ( ?s = ?m ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?s ) WHERE { ?g property:P530 ?v . ?g rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } GROUP BY ?g } }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?n ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation ?t } GROUP BY ?r } } . FILTER ( ?s = ?m ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?s ) WHERE { ?g property:diplomatic_relation ?v . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?g } }
[]
designation for an administrative territorial entity political territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q1048835),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWER] have diplomatic relations with max number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?n ) WHERE { ?r rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 . ?r property:P530 ?t } GROUP BY ?r } } . FILTER ( ?s = ?m ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?s ) WHERE { ?g property:P530 ?v . ?g rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } GROUP BY ?g } }
Italy
Italy have diplomatic relations with max number of political territories
Italy
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?n ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation ?t } GROUP BY ?r } } . FILTER ( ?s = ?m ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?s ) WHERE { ?g property:diplomatic_relation ?v . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?g } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q10792367
P119 P21
Q502895
USER
Which people have Hauptfriedhof Ravensburg as his/her tomb and have the gender as male ?
AND((c(Q502895),P119,Q10792367), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q10792367
relation P119
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P119', 'Q10792367'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P119 resource:Q10792367 . ?e property:P21 resource:Q6581097 }
male Hauptfriedhof Ravensburg
action filter_type
action intersection
action find_reverse
entity Hauptfriedhof Ravensburg
relation place of burial
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of burial', 'Hauptfriedhof Ravensburg'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:place_of_burial resource:Hauptfriedhof_Ravensburg . ?e property:gender resource:male }
[]
common name
Q2418268 Q1874803 Q27037693 Q500165 Q2637681 Q2638707 Q26196922 Q1506061 Q2150626 Q500526
SYSTEM
Some of them are Theodor Schnell the Younger, Ludwig Munzinger, Tobias Knoblauch, Andreas Reichle, Albert Bouley, Albert Sauer, Paul Horn, Georg Spohn, Richard Spohn, Andreas Schockenhoff
Q1506061 Q2058849 Q1874803 Q500526 Q2637681 Q2150626 Q2078295 Q26196922 Q98797 Q2638707 Q2418268 Q27037693 Q2040356 Q1432055 Q500165
AND((c(Q502895),P119,Q10792367), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q10792367
relation P119
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have Hauptfriedhof Ravensburg as his/her tomb and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P119', 'Q10792367'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P119 resource:Q10792367 . ?e property:P21 resource:Q6581097 }
Georg Spohn Paul Beck Ludwig Munzinger Andreas Schockenhoff Albert Bouley Richard Spohn Peter Selinka Paul Horn Karl Erb Albert Sauer Theodor Schnell the Younger Tobias Knoblauch Otto Rundel Julius Spohn Andreas Reichle
Theodor Schnell the Younger, Ludwig Munzinger, Tobias Knoblauch, Andreas Reichle, Albert Bouley, Albert Sauer, Paul Horn, Georg Spohn, Richard Spohn and Andreas Schockenhoff have Hauptfriedhof Ravensburg as his/her tomb and have the gender as male
Theodor Schnell the Younger Ludwig Munzinger Tobias Knoblauch Andreas Reichle Albert Bouley Albert Sauer Paul Horn Georg Spohn Richard Spohn Andreas Schockenhoff
action filter_type
action intersection
action find_reverse
entity Hauptfriedhof Ravensburg
relation place of burial
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of burial', 'Hauptfriedhof Ravensburg'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:place_of_burial resource:Hauptfriedhof_Ravensburg . ?e property:gender resource:male }
[]