Simple Question (Direct)
Simple Question
Q93708
P19
Q24293650
USER
Where was Adolph Northen born ?
(Q93708,P19,c(Q24293650))
action filter_type
action find
entity Q93708
relation P19
type Q24293650
['Q93708', 'P19', {'concept': 'Q24293650'}]
SELECT DISTINCT ?n WHERE { resource:Q93708 property:P19 ?n . ?n rdf:type ontology:Q24293650 }
Adolph Northen
action filter_type
action find
entity Adolph Northen
relation place of birth
type type of german administrative division
['Adolph Northen', 'place of birth', {'concept': 'type of german administrative division'}]
SELECT DISTINCT ?n WHERE { resource:Adolph_Northen property:place_of_birth ?n . ?n rdf:type ontology:type_of_german_administrative_division }
[]
type of german administrative division
Q165380
SYSTEM
Hannoversch Münden
Q165380
(Q93708,P19,c(Q24293650))
action filter_type
action find
entity Q93708
relation P19
type Q24293650
Adolph Northen was born in [ANSWER]
['Q93708', 'P19', {'concept': 'Q24293650'}]
SELECT DISTINCT ?n WHERE { resource:Q93708 property:P19 ?n . ?n rdf:type ontology:Q24293650 }
Hannoversch Münden
Adolph Northen was born in Hannoversch Münden
Hannoversch Münden
action filter_type
action find
entity Adolph Northen
relation place of birth
type type of german administrative division
['Adolph Northen', 'place of birth', {'concept': 'type of german administrative division'}]
SELECT DISTINCT ?n WHERE { resource:Adolph_Northen property:place_of_birth ?n . ?n rdf:type ontology:type_of_german_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q93708
P937
Q56061
USER
Which administrative territories are the work locations of that person ?
(Q165380,P937,c(Q56061))
action filter_type
action find
entity Q93708
relation P937
type Q56061
['Q165380', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q93708 property:P937 ?f . ?f rdf:type ontology:Q56061 }
Adolph Northen
action filter_type
action find
entity Adolph Northen
relation work location
type administrative territorial entity
['Hannoversch Münden', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Adolph_Northen property:work_location ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1718 Q1715
SYSTEM
Düsseldorf, Hanover
Q1718 Q1715
(Q165380,P937,c(Q56061))
action filter_type
action find
entity Q93708
relation P937
type Q56061
[ANSWERS] are the work locations of that person
['Q165380', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q93708 property:P937 ?f . ?f rdf:type ontology:Q56061 }
Düsseldorf Hanover
Düsseldorf and Hanover are the work locations of that person
Düsseldorf Hanover
action filter_type
action find
entity Adolph Northen
relation work location
type administrative territorial entity
['Hannoversch Münden', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Adolph_Northen property:work_location ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P159
Q874405 Q31855
USER
How many social groups or research institutes have headquarters located at that administrative territory ?
(c(Q874405),P159,Q1718) (c(Q31855),P159,Q1718) (c(Q874405),P159,Q1718) (c(Q31855),P159,Q1718) (c(Q874405),P159,Q1715) (c(Q31855),P159,Q1715)
[{'concept': 'Q874405'}, 'P159', 'Q1718'] [{'concept': 'Q31855'}, 'P159', 'Q1718'] [{'concept': 'Q874405'}, 'P159', 'Q1718'] [{'concept': 'Q31855'}, 'P159', 'Q1718'] [{'concept': 'Q874405'}, 'P159', 'Q1715'] [{'concept': 'Q31855'}, 'P159', 'Q1715']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P159 resource:Q1718 } UNION { ?y property:P159 resource:Q1718 } UNION { ?z property:P159 resource:Q1718 } UNION { ?y property:P159 resource:Q1718 } UNION { ?z property:P159 resource:Q1715 } UNION { ?y property:P159 resource:Q1715 } } . ?z rdf:type ontology:Q874405 . ?y rdf:type ontology:Q31855 }
[{'concept': 'social group'}, 'headquarters location', 'Düsseldorf'] [{'concept': 'research institute'}, 'headquarters location', 'Düsseldorf'] [{'concept': 'social group'}, 'headquarters location', 'Düsseldorf'] [{'concept': 'research institute'}, 'headquarters location', 'Düsseldorf'] [{'concept': 'social group'}, 'headquarters location', 'Hanover'] [{'concept': 'research institute'}, 'headquarters location', 'Hanover']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:headquarters_location resource:Düsseldorf } UNION { ?y property:headquarters_location resource:Düsseldorf } UNION { ?z property:headquarters_location resource:Düsseldorf } UNION { ?y property:headquarters_location resource:Düsseldorf } UNION { ?z property:headquarters_location resource:Hanover } UNION { ?y property:headquarters_location resource:Hanover } } . ?z rdf:type ontology:social_group . ?y rdf:type ontology:research_institute }
[]
social group research institute
Quantitative|Count|Mult. entity type|Clarification
Q1715
SYSTEM
Did you mean Hanover ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P159 resource:Q1718 } UNION { ?y property:P159 resource:Q1718 } UNION { ?z property:P159 resource:Q1718 } UNION { ?y property:P159 resource:Q1718 } UNION { ?z property:P159 resource:Q1715 } UNION { ?y property:P159 resource:Q1715 } } . ?z rdf:type ontology:Q874405 . ?y rdf:type ontology:Q31855 }
Did you mean Hanover ?
Hanover
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:headquarters_location resource:Düsseldorf } UNION { ?y property:headquarters_location resource:Düsseldorf } UNION { ?z property:headquarters_location resource:Düsseldorf } UNION { ?y property:headquarters_location resource:Düsseldorf } UNION { ?z property:headquarters_location resource:Hanover } UNION { ?y property:headquarters_location resource:Hanover } } . ?z rdf:type ontology:social_group . ?y rdf:type ontology:research_institute }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Düsseldorf. Could you tell me the answer for that?
(c(Q874405),P159,Q1718) (c(Q31855),P159,Q1718) (c(Q874405),P159,Q1718) (c(Q31855),P159,Q1718) (c(Q874405),P159,Q1715) (c(Q31855),P159,Q1715)
Q1718
[{'concept': 'Q874405'}, 'P159', 'Q1718'] [{'concept': 'Q31855'}, 'P159', 'Q1718'] [{'concept': 'Q874405'}, 'P159', 'Q1718'] [{'concept': 'Q31855'}, 'P159', 'Q1718'] [{'concept': 'Q874405'}, 'P159', 'Q1715'] [{'concept': 'Q31855'}, 'P159', 'Q1715']
[{'concept': 'social group'}, 'headquarters location', 'Düsseldorf'] [{'concept': 'research institute'}, 'headquarters location', 'Düsseldorf'] [{'concept': 'social group'}, 'headquarters location', 'Düsseldorf'] [{'concept': 'research institute'}, 'headquarters location', 'Düsseldorf'] [{'concept': 'social group'}, 'headquarters location', 'Hanover'] [{'concept': 'research institute'}, 'headquarters location', 'Hanover']
[]
SYSTEM
4
Q616952 Q881977 Q1565910 Q452752
(c(Q874405),P159,Q1718) (c(Q31855),P159,Q1718) (c(Q874405),P159,Q1718) (c(Q31855),P159,Q1718) (c(Q874405),P159,Q1715) (c(Q31855),P159,Q1715)
[ANSWER]
[{'concept': 'Q874405'}, 'P159', 'Q1718'] [{'concept': 'Q31855'}, 'P159', 'Q1718'] [{'concept': 'Q874405'}, 'P159', 'Q1718'] [{'concept': 'Q31855'}, 'P159', 'Q1718'] [{'concept': 'Q874405'}, 'P159', 'Q1715'] [{'concept': 'Q31855'}, 'P159', 'Q1715']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P159 resource:Q1718 } UNION { ?y property:P159 resource:Q1718 } UNION { ?z property:P159 resource:Q1718 } UNION { ?y property:P159 resource:Q1718 } UNION { ?z property:P159 resource:Q1715 } UNION { ?y property:P159 resource:Q1715 } } . ?z rdf:type ontology:Q874405 . ?y rdf:type ontology:Q31855 }
GÜFA Max Planck Institute for Iron Research GmbH HSBC Global Asset Management Rud. Ibach Sohn
4
[{'concept': 'social group'}, 'headquarters location', 'Düsseldorf'] [{'concept': 'research institute'}, 'headquarters location', 'Düsseldorf'] [{'concept': 'social group'}, 'headquarters location', 'Düsseldorf'] [{'concept': 'research institute'}, 'headquarters location', 'Düsseldorf'] [{'concept': 'social group'}, 'headquarters location', 'Hanover'] [{'concept': 'research institute'}, 'headquarters location', 'Hanover']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:headquarters_location resource:Düsseldorf } UNION { ?y property:headquarters_location resource:Düsseldorf } UNION { ?z property:headquarters_location resource:Düsseldorf } UNION { ?y property:headquarters_location resource:Düsseldorf } UNION { ?z property:headquarters_location resource:Hanover } UNION { ?y property:headquarters_location resource:Hanover } } . ?z rdf:type ontology:social_group . ?y rdf:type ontology:research_institute }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q11318541 Q1718
P206 P177
Q355304
USER
Which watercourses are situated close to Düsseldorf or are crossed over by Chirundu Bridge ?
OR((Q1718,P206,c(Q355304)), (Q11318541,P177,c(Q355304)))
action filter_type
action union
action find
entity Q1718
relation P206
action find
entity Q11318541
relation P177
type Q355304
{'OR': [['Q1718', 'P206', {'concept': 'Q355304'}], ['Q11318541', 'P177', {'concept': 'Q355304'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q11318541 property:P177 ?g } UNION { resource:Q1718 property:P206 ?g } } . ?g rdf:type ontology:Q355304 }
Chirundu Bridge Düsseldorf
action filter_type
action union
action find
entity Düsseldorf
relation located next to body of water
action find
entity Chirundu Bridge
relation crosses
type watercourse
{'OR': [['Düsseldorf', 'located next to body of water', {'concept': 'watercourse'}], ['Chirundu Bridge', 'crosses', {'concept': 'watercourse'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Chirundu_Bridge property:crosses ?g } UNION { resource:Düsseldorf property:located_next_to_body_of_water ?g } } . ?g rdf:type ontology:watercourse }
[]
watercourse
Q43106 Q584 Q701645
SYSTEM
Zambezi River, Rhine, Düssel
Q43106 Q584 Q701645
OR((Q1718,P206,c(Q355304)), (Q11318541,P177,c(Q355304)))
action filter_type
action union
action find
entity Q1718
relation P206
action find
entity Q11318541
relation P177
type Q355304
[ANSWERS] are situated close to Düsseldorf or are crossed over by Chirundu Bridge
{'OR': [['Q1718', 'P206', {'concept': 'Q355304'}], ['Q11318541', 'P177', {'concept': 'Q355304'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q11318541 property:P177 ?g } UNION { resource:Q1718 property:P206 ?g } } . ?g rdf:type ontology:Q355304 }
Zambezi River Rhine Düssel
Zambezi River, Rhine and Düssel are situated close to Düsseldorf or are crossed over by Chirundu Bridge
Zambezi River Rhine Düssel
action filter_type
action union
action find
entity Düsseldorf
relation located next to body of water
action find
entity Chirundu Bridge
relation crosses
type watercourse
{'OR': [['Düsseldorf', 'located next to body of water', {'concept': 'watercourse'}], ['Chirundu Bridge', 'crosses', {'concept': 'watercourse'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Chirundu_Bridge property:crosses ?g } UNION { resource:Düsseldorf property:located_next_to_body_of_water ?g } } . ?g rdf:type ontology:watercourse }
[]