Simple Question (Direct)
Simple Question
Q825051
P21
Q290
USER
What is the sex of Johann Wilhelm Wagner ?
(Q825051,P21,c(Q290))
action filter_type
action find
entity Q825051
relation P21
type Q290
['Q825051', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q825051 property:P21 ?u . ?u rdf:type ontology:Q290 }
Johann Wilhelm Wagner
action filter_type
action find
entity Johann Wilhelm Wagner
relation gender
type sex
['Johann Wilhelm Wagner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Johann_Wilhelm_Wagner property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q825051,P21,c(Q290))
action filter_type
action find
entity Q825051
relation P21
type Q290
The sex of Johann Wilhelm Wagner is the [ANSWER]
['Q825051', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q825051 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
The sex of Johann Wilhelm Wagner is the male
male
action filter_type
action find
entity Johann Wilhelm Wagner
relation gender
type sex
['Johann Wilhelm Wagner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Johann_Wilhelm_Wagner property:gender ?u . ?u rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q825051
P19
Q486972
USER
Which human settlement was Johann Wilhelm Wagner born in ?
(Q825051,P19,c(Q486972))
action filter_type
action find
entity Q825051
relation P19
type Q486972
['Q825051', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?t WHERE { resource:Q825051 property:P19 ?t . ?t rdf:type ontology:Q486972 }
Johann Wilhelm Wagner
action filter_type
action find
entity Johann Wilhelm Wagner
relation place of birth
type human settlement
['Johann Wilhelm Wagner', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?t WHERE { resource:Johann_Wilhelm_Wagner property:place_of_birth ?t . ?t rdf:type ontology:human_settlement }
[]
human settlement
Q1601702
SYSTEM
Heldburg
Q1601702
(Q825051,P19,c(Q486972))
action filter_type
action find
entity Q825051
relation P19
type Q486972
Johann Wilhelm Wagner was born in [ANSWER]
['Q825051', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?t WHERE { resource:Q825051 property:P19 ?t . ?t rdf:type ontology:Q486972 }
Heldburg
Johann Wilhelm Wagner was born in Heldburg
Heldburg
action filter_type
action find
entity Johann Wilhelm Wagner
relation place of birth
type human settlement
['Johann Wilhelm Wagner', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?t WHERE { resource:Johann_Wilhelm_Wagner property:place_of_birth ?t . ?t rdf:type ontology:human_settlement }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q825051
P20
Q56061
USER
Where did Johann Wilhelm Wagner expire ?
(Q825051,P20,c(Q56061))
action filter_type
action find
entity Q825051
relation P20
type Q56061
['Q825051', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q825051 property:P20 ?a . ?a rdf:type ontology:Q56061 }
Johann Wilhelm Wagner
action filter_type
action find
entity Johann Wilhelm Wagner
relation place of death
type administrative territorial entity
['Johann Wilhelm Wagner', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Johann_Wilhelm_Wagner property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q825051,P20,c(Q56061))
action filter_type
action find
entity Q825051
relation P20
type Q56061
Johann Wilhelm Wagner expired in [ANSWER]
['Q825051', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q825051 property:P20 ?a . ?a rdf:type ontology:Q56061 }
Berlin
Johann Wilhelm Wagner expired in Berlin
Berlin
action filter_type
action find
entity Johann Wilhelm Wagner
relation place of death
type administrative territorial entity
['Johann Wilhelm Wagner', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Johann_Wilhelm_Wagner property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1601702
P937
Q502895
USER
Which person have Heldburg as their work location ?
(c(Q502895),P937,Q1601702)
action filter_type
action find_reverse
entity Q1601702
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q1601702']
SELECT DISTINCT ?k WHERE { ?k property:P937 resource:Q1601702 . ?k rdf:type ontology:Q502895 }
Heldburg
action filter_type
action find_reverse
entity Heldburg
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Heldburg']
SELECT DISTINCT ?k WHERE { ?k property:work_location resource:Heldburg . ?k rdf:type ontology:common_name }
[]
common name
Q122656
SYSTEM
Johann Stössel
Q122656
(c(Q502895),P937,Q1601702)
action filter_type
action find_reverse
entity Q1601702
relation P937
type Q502895
[ANSWER] have Heldburg as their work location
[{'concept': 'Q502895'}, 'P937', 'Q1601702']
SELECT DISTINCT ?k WHERE { ?k property:P937 resource:Q1601702 . ?k rdf:type ontology:Q502895 }
Johann Stössel
Johann Stössel have Heldburg as their work location
Johann Stössel
action filter_type
action find_reverse
entity Heldburg
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Heldburg']
SELECT DISTINCT ?k WHERE { ?k property:work_location resource:Heldburg . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1601702
P17
Q1048835
USER
Which political territory is Heldburg present in ?
(Q1601702,P17,c(Q1048835))
action filter_type
action find
entity Q1601702
relation P17
type Q1048835
['Q1601702', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q1601702 property:P17 ?h . ?h rdf:type ontology:Q1048835 }
Heldburg
action filter_type
action find
entity Heldburg
relation country
type political territorial entity
['Heldburg', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Heldburg property:country ?h . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1601702,P17,c(Q1048835))
action filter_type
action find
entity Q1601702
relation P17
type Q1048835
Heldburg is in [ANSWER]
['Q1601702', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q1601702 property:P17 ?h . ?h rdf:type ontology:Q1048835 }
Germany
Heldburg is in Germany
Germany
action filter_type
action find
entity Heldburg
relation country
type political territorial entity
['Heldburg', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Heldburg property:country ?h . ?h rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q15617994 Q12737077 Q486972
USER
Which human settlements have around 1 administrative territories and occupations as their namesake ?
(c(Q486972),P138,c(Q15617994)|c(Q12737077))
action approx
action union
action find_tuple_counts
relation P138
type Q486972
type Q15617994
action find_tuple_counts
relation P138
type Q486972
type Q12737077
value 1
[{'concept': 'Q486972'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?u WHERE { VALUES ( ?x ) { ( ontology:Q15617994 ) ( ontology:Q12737077 ) } . ?g rdf:type ?x } GROUP BY ?u } . FILTER ( ?y = 1 ) }
action approx
action union
action find_tuple_counts
relation named after
type human settlement
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type human settlement
type occupation
value 1
[{'concept': 'human settlement'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?u WHERE { VALUES ( ?x ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:occupation ) } . ?g rdf:type ?x } GROUP BY ?u } . FILTER ( ?y = 1 ) }
[]
designation for an administrative territorial entity occupation human settlement
Q50996 Q1616604 Q2275291
SYSTEM
Pudost, Papenholz, Schildersbuurt
Q2275291 Q50996 Q1616604 Q27113552
(c(Q486972),P138,c(Q15617994)|c(Q12737077))
action approx
action union
action find_tuple_counts
relation P138
type Q486972
type Q15617994
action find_tuple_counts
relation P138
type Q486972
type Q12737077
value 1
[ANSWERS] have around 1 administrative territories and occupations as their namesake
[{'concept': 'Q486972'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?u WHERE { VALUES ( ?x ) { ( ontology:Q15617994 ) ( ontology:Q12737077 ) } . ?g rdf:type ?x } GROUP BY ?u } . FILTER ( ?y = 1 ) }
Schildersbuurt Pudost Papenholz Reeserschanz
Pudost, Papenholz and Schildersbuurt have around 1 administrative territories and occupations as their namesake
Pudost Papenholz Schildersbuurt
action approx
action union
action find_tuple_counts
relation named after
type human settlement
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type human settlement
type occupation
value 1
[{'concept': 'human settlement'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?u WHERE { VALUES ( ?x ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:occupation ) } . ?g rdf:type ?x } GROUP BY ?u } . FILTER ( ?y = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1616604
P47
Q486972
USER
Which human settlement is adjacent to that one ?
(Q1616604,P47,c(Q486972))
action filter_type
action find
entity Q1616604
relation P47
type Q486972
['Q1616604', 'P47', {'concept': 'Q486972'}]
SELECT DISTINCT ?s WHERE { resource:Q1616604 property:P47 ?s . ?s rdf:type ontology:Q486972 }
Papenholz
action filter_type
action find
entity Papenholz
relation shares border with
type human settlement
['Papenholz', 'shares border with', {'concept': 'human settlement'}]
SELECT DISTINCT ?s WHERE { resource:Papenholz property:shares_border_with ?s . ?s rdf:type ontology:human_settlement }
[]
human settlement
Clarification for simple ques.
Q1616604
SYSTEM
Did you mean Papenholz ?
Q50996 Q1616604 Q2275291
(Q50996,P47,c(Q486972)) (Q1616604,P47,c(Q486972)) (Q2275291,P47,c(Q486972))
[ANSWER]
['Q50996', 'P47', {'concept': 'Q486972'}] ['Q1616604', 'P47', {'concept': 'Q486972'}] ['Q2275291', 'P47', {'concept': 'Q486972'}]
SELECT DISTINCT ?s WHERE { resource:Q1616604 property:P47 ?s . ?s rdf:type ontology:Q486972 }
Pudost Papenholz Schildersbuurt
Did you mean Papenholz ?
Papenholz
['Pudost', 'shares border with', {'concept': 'human settlement'}] ['Papenholz', 'shares border with', {'concept': 'human settlement'}] ['Schildersbuurt', 'shares border with', {'concept': 'human settlement'}]
SELECT DISTINCT ?s WHERE { resource:Papenholz property:shares_border_with ?s . ?s rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1616604,P47,c(Q486972))
['Q1616604', 'P47', {'concept': 'Q486972'}]
['Papenholz', 'shares border with', {'concept': 'human settlement'}]
[]
Q1270814
SYSTEM
Kaltehardt
Q1270814
(Q1616604,P47,c(Q486972))
action filter_type
action find
entity Q1616604
relation P47
type Q486972
[ANSWER] is adjacent to that one
['Q1616604', 'P47', {'concept': 'Q486972'}]
SELECT DISTINCT ?s WHERE { resource:Q1616604 property:P47 ?s . ?s rdf:type ontology:Q486972 }
Kaltehardt
Kaltehardt is adjacent to that one
Kaltehardt
action filter_type
action find
entity Papenholz
relation shares border with
type human settlement
['Papenholz', 'shares border with', {'concept': 'human settlement'}]
SELECT DISTINCT ?s WHERE { resource:Papenholz property:shares_border_with ?s . ?s rdf:type ontology:human_settlement }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1270814 Q183
P17
Q1048835
USER
Does that human settlement belong to Germany ?
(Q1270814,P17,Q183)
action is_in
entity Q183
action find
entity Q1270814
relation P17
['Q1270814', 'P17', 'Q183']
ASK WHERE { resource:Q1270814 property:P17 resource:Q183 }
Kaltehardt Germany
action is_in
entity Germany
action find
entity Kaltehardt
relation country
['Kaltehardt', 'country', 'Germany']
ASK WHERE { resource:Kaltehardt property:country resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q1270814,P17,Q183)
action is_in
entity Q183
action find
entity Q1270814
relation P17
[ANSWER]
['Q1270814', 'P17', 'Q183']
ASK WHERE { resource:Q1270814 property:P17 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Kaltehardt
relation country
['Kaltehardt', 'country', 'Germany']
ASK WHERE { resource:Kaltehardt property:country resource:Germany }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q122656 Q613454 Q13449
P27
Q1048835
USER
Is Johann Stössel a citizen of Bédar and Sant Andreu Salou ?
(Q122656,P27,Q613454) (Q122656,P27,Q13449)
action is_in
entity Q122656
action intersection
action find_reverse
entity Q613454
relation P27
action find_reverse
entity Q13449
relation P27
['Q122656', 'P27', 'Q613454'] ['Q122656', 'P27', 'Q13449']
ASK WHERE { resource:Q122656 property:P27 resource:Q613454 . resource:Q122656 property:P27 resource:Q13449 }
Johann Stössel Bédar Sant Andreu Salou
action is_in
entity Johann Stössel
action intersection
action find_reverse
entity Bédar
relation country of citizenship
action find_reverse
entity Sant Andreu Salou
relation country of citizenship
['Johann Stössel', 'country of citizenship', 'Bédar'] ['Johann Stössel', 'country of citizenship', 'Sant Andreu Salou']
ASK WHERE { resource:Johann_Stössel property:country_of_citizenship resource:Bédar . resource:Johann_Stössel property:country_of_citizenship resource:Sant_Andreu_Salou }
[]
political territorial entity
SYSTEM
NO
(Q122656,P27,Q613454) (Q122656,P27,Q13449)
action is_in
entity Q122656
action intersection
action find_reverse
entity Q613454
relation P27
action find_reverse
entity Q13449
relation P27
[ANSWER]
['Q122656', 'P27', 'Q613454'] ['Q122656', 'P27', 'Q13449']
ASK WHERE { resource:Q122656 property:P27 resource:Q613454 . resource:Q122656 property:P27 resource:Q13449 }
No
action is_in
entity Johann Stössel
action intersection
action find_reverse
entity Bédar
relation country of citizenship
action find_reverse
entity Sant Andreu Salou
relation country of citizenship
['Johann Stössel', 'country of citizenship', 'Bédar'] ['Johann Stössel', 'country of citizenship', 'Sant Andreu Salou']
ASK WHERE { resource:Johann_Stössel property:country_of_citizenship resource:Bédar . resource:Johann_Stössel property:country_of_citizenship resource:Sant_Andreu_Salou }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q9352815 Q825051
P27
Q1048835
USER
Which political territories are the native countriesof Johann Wilhelm Wagner or Sébastien Leblanc ?
OR((Q825051,P27,c(Q1048835)), (Q9352815,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q825051
relation P27
action find
entity Q9352815
relation P27
type Q1048835
{'OR': [['Q825051', 'P27', {'concept': 'Q1048835'}], ['Q9352815', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { { ?r property:P27 ?p . VALUES ( ?r ) { ( resource:Q825051 ) ( resource:Q9352815 ) } } . ?p rdf:type ontology:Q1048835 }
Sébastien Leblanc Johann Wilhelm Wagner
action filter_type
action union
action find
entity Johann Wilhelm Wagner
relation country of citizenship
action find
entity Sébastien Leblanc
relation country of citizenship
type political territorial entity
{'OR': [['Johann Wilhelm Wagner', 'country of citizenship', {'concept': 'political territorial entity'}], ['Sébastien Leblanc', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { ?r property:country_of_citizenship ?p . VALUES ( ?r ) { ( resource:Johann_Wilhelm_Wagner ) ( resource:Sébastien_Leblanc ) } } . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q183
SYSTEM
Canada, Germany
Q16 Q183
OR((Q825051,P27,c(Q1048835)), (Q9352815,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q825051
relation P27
action find
entity Q9352815
relation P27
type Q1048835
[ANSWERS] are the native countriesof Johann Wilhelm Wagner or Sébastien Leblanc
{'OR': [['Q825051', 'P27', {'concept': 'Q1048835'}], ['Q9352815', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { { ?r property:P27 ?p . VALUES ( ?r ) { ( resource:Q825051 ) ( resource:Q9352815 ) } } . ?p rdf:type ontology:Q1048835 }
Canada Germany
Canada and Germany are the native countriesof Johann Wilhelm Wagner or Sébastien Leblanc
Canada Germany
action filter_type
action union
action find
entity Johann Wilhelm Wagner
relation country of citizenship
action find
entity Sébastien Leblanc
relation country of citizenship
type political territorial entity
{'OR': [['Johann Wilhelm Wagner', 'country of citizenship', {'concept': 'political territorial entity'}], ['Sébastien Leblanc', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { ?r property:country_of_citizenship ?p . VALUES ( ?r ) { ( resource:Johann_Wilhelm_Wagner ) ( resource:Sébastien_Leblanc ) } } . ?p rdf:type ontology:political_territorial_entity }
[]