Simple Question (Direct)
Simple Question
Q1587388
P106
Q12737077
USER
What does Hartmut Brun do for a living ?
(Q1587388,P106,c(Q12737077))
action filter_type
action find
entity Q1587388
relation P106
type Q12737077
['Q1587388', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1587388 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Hartmut Brun
action filter_type
action find
entity Hartmut Brun
relation occupation
type occupation
['Hartmut Brun', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Hartmut_Brun property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q1587388,P106,c(Q12737077))
action filter_type
action find
entity Q1587388
relation P106
type Q12737077
Hartmut Brun does for a living a [ANSWER]
['Q1587388', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1587388 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
politician
Hartmut Brun does for a living a politician
politician
action filter_type
action find
entity Hartmut Brun
relation occupation
type occupation
['Hartmut Brun', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Hartmut_Brun property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1587388
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q82955,P39,c(Q12737077))
action filter_type
action find
entity Q1587388
relation P39
type Q12737077
['Q82955', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q1587388 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
Hartmut Brun
action filter_type
action find
entity Hartmut Brun
relation position held
type occupation
['politician', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Hartmut_Brun property:position_held ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q82955,P39,c(Q12737077))
action filter_type
action find
entity Q1587388
relation P39
type Q12737077
The [ANSWER] was a position held by that person
['Q82955', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q1587388 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
mayor
The mayor was a position held by that person
mayor
action filter_type
action find
entity Hartmut Brun
relation position held
type occupation
['politician', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Hartmut_Brun property:position_held ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1587388
P19
Q15617994
USER
Which administrative territory was that person born in ?
(Q30185,P19,c(Q15617994))
action filter_type
action find
entity Q1587388
relation P19
type Q15617994
['Q30185', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q1587388 property:P19 ?q }
Hartmut Brun
action filter_type
action find
entity Hartmut Brun
relation place of birth
type designation for an administrative territorial entity
['mayor', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hartmut_Brun property:place_of_birth ?q }
[]
designation for an administrative territorial entity
Q536781
SYSTEM
Dömitz
Q536781
(Q30185,P19,c(Q15617994))
action filter_type
action find
entity Q1587388
relation P19
type Q15617994
That person was born in [ANSWER]
['Q30185', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q1587388 property:P19 ?q }
Dömitz
That person was born in Dömitz
Dömitz
action filter_type
action find
entity Hartmut Brun
relation place of birth
type designation for an administrative territorial entity
['mayor', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hartmut_Brun property:place_of_birth ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q536781
P20
Q502895
USER
Which people have that administrative territory as place of death ?
(c(Q502895),P20,Q536781)
action filter_type
action find_reverse
entity Q536781
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q536781']
SELECT DISTINCT ?t WHERE { ?t property:P20 resource:Q536781 . ?t rdf:type ontology:Q502895 }
Dömitz
action filter_type
action find_reverse
entity Dömitz
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Dömitz']
SELECT DISTINCT ?t WHERE { ?t property:place_of_death resource:Dömitz . ?t rdf:type ontology:common_name }
[]
common name
Q91473 Q682701 Q1873797
SYSTEM
Friedrich Gaedcke, Karl Leopold, Duke of Mecklenburg-Schwerin, Ludeke Holland
Q91473 Q682701 Q1873797
(c(Q502895),P20,Q536781)
action filter_type
action find_reverse
entity Q536781
relation P20
type Q502895
[ANSWERS] have that administrative territory as place of death
[{'concept': 'Q502895'}, 'P20', 'Q536781']
SELECT DISTINCT ?t WHERE { ?t property:P20 resource:Q536781 . ?t rdf:type ontology:Q502895 }
Friedrich Gaedcke Karl Leopold, Duke of Mecklenburg-Schwerin Ludeke Holland
Friedrich Gaedcke, Karl Leopold, Duke of Mecklenburg-Schwerin and Ludeke Holland have that administrative territory as place of death
Friedrich Gaedcke Karl Leopold, Duke of Mecklenburg-Schwerin Ludeke Holland
action filter_type
action find_reverse
entity Dömitz
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Dömitz']
SELECT DISTINCT ?t WHERE { ?t property:place_of_death resource:Dömitz . ?t rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q82955 Q536781
P106 P20
Q502895
USER
Which people have Dömitz as the location of death and have the profession as politician ?
AND((c(Q502895),P20,Q536781), (c(Q502895),P106,Q82955))
action filter_type
action intersection
action find_reverse
entity Q536781
relation P20
action find_reverse
entity Q82955
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P20', 'Q536781'], [{'concept': 'Q502895'}, 'P106', 'Q82955']]}
SELECT DISTINCT ?b WHERE { ?b property:P20 resource:Q536781 . ?b property:P106 resource:Q82955 . ?b rdf:type ontology:Q502895 }
politician Dömitz
action filter_type
action intersection
action find_reverse
entity Dömitz
relation place of death
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of death', 'Dömitz'], [{'concept': 'common name'}, 'occupation', 'politician']]}
SELECT DISTINCT ?b WHERE { ?b property:place_of_death resource:Dömitz . ?b property:occupation resource:politician . ?b rdf:type ontology:common_name }
[]
common name
Q1873797
SYSTEM
Ludeke Holland
Q1873797
AND((c(Q502895),P20,Q536781), (c(Q502895),P106,Q82955))
action filter_type
action intersection
action find_reverse
entity Q536781
relation P20
action find_reverse
entity Q82955
relation P106
type Q502895
[ANSWER] have Dömitz as the location of death and have the profession as politician
{'AND': [[{'concept': 'Q502895'}, 'P20', 'Q536781'], [{'concept': 'Q502895'}, 'P106', 'Q82955']]}
SELECT DISTINCT ?b WHERE { ?b property:P20 resource:Q536781 . ?b property:P106 resource:Q82955 . ?b rdf:type ontology:Q502895 }
Ludeke Holland
Ludeke Holland have Dömitz as the location of death and have the profession as politician
Ludeke Holland
action filter_type
action intersection
action find_reverse
entity Dömitz
relation place of death
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of death', 'Dömitz'], [{'concept': 'common name'}, 'occupation', 'politician']]}
SELECT DISTINCT ?b WHERE { ?b property:place_of_death resource:Dömitz . ?b property:occupation resource:politician . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can around 3330 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3330
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?r ) WHERE { ?a property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?r = 3330 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3330
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?r ) WHERE { ?a property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?r = 3330 ) }
[]
musical instrument common name
SYSTEM
3
Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3330
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?r ) WHERE { ?a property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?r = 3330 ) }
violin organ drum kit
3
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3330
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?r ) WHERE { ?a property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?r = 3330 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q82955 Q536781
P19 P106
Q502895
USER
Which people were born at Dömitz and have the profession as politician ?
AND((c(Q502895),P19,Q536781), (c(Q502895),P106,Q82955))
action filter_type
action intersection
action find_reverse
entity Q536781
relation P19
action find_reverse
entity Q82955
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q536781'], [{'concept': 'Q502895'}, 'P106', 'Q82955']]}
SELECT DISTINCT ?b WHERE { ?b property:P19 resource:Q536781 . ?b property:P106 resource:Q82955 . ?b rdf:type ontology:Q502895 }
politician Dömitz
action filter_type
action intersection
action find_reverse
entity Dömitz
relation place of birth
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Dömitz'], [{'concept': 'common name'}, 'occupation', 'politician']]}
SELECT DISTINCT ?b WHERE { ?b property:place_of_birth resource:Dömitz . ?b property:occupation resource:politician . ?b rdf:type ontology:common_name }
[]
common name
Q1224037 Q2061837 Q1732431 Q1587388
SYSTEM
Dietrich Spangenberg, Paul Reichert, Karl Müller, Hartmut Brun
Q1224037 Q2061837 Q1732431 Q1587388
AND((c(Q502895),P19,Q536781), (c(Q502895),P106,Q82955))
action filter_type
action intersection
action find_reverse
entity Q536781
relation P19
action find_reverse
entity Q82955
relation P106
type Q502895
[ANSWERS] were born at Dömitz and have the profession as politician
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q536781'], [{'concept': 'Q502895'}, 'P106', 'Q82955']]}
SELECT DISTINCT ?b WHERE { ?b property:P19 resource:Q536781 . ?b property:P106 resource:Q82955 . ?b rdf:type ontology:Q502895 }
Dietrich Spangenberg Paul Reichert Karl Müller Hartmut Brun
Dietrich Spangenberg, Paul Reichert, Karl Müller and Hartmut Brun were born at Dömitz and have the profession as politician
Dietrich Spangenberg Paul Reichert Karl Müller Hartmut Brun
action filter_type
action intersection
action find_reverse
entity Dömitz
relation place of birth
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Dömitz'], [{'concept': 'common name'}, 'occupation', 'politician']]}
SELECT DISTINCT ?b WHERE { ?b property:place_of_birth resource:Dömitz . ?b property:occupation resource:politician . ?b rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1732431
P734
Q82799
USER
Which name is associated with that person ?
(Q1732431,P734,c(Q82799))
action filter_type
action find
entity Q1732431
relation P734
type Q82799
['Q1732431', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q1732431 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Karl Müller
action filter_type
action find
entity Karl Müller
relation family name
type name
['Karl Müller', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Karl_Müller property:family_name ?u . ?u rdf:type ontology:name }
[]
name
Clarification for simple ques.
Q1587388
SYSTEM
Did you mean Hartmut Brun ?
Q1224037 Q2061837 Q1732431 Q1587388
(Q1224037,P734,c(Q82799)) (Q2061837,P734,c(Q82799)) (Q1732431,P734,c(Q82799)) (Q1587388,P734,c(Q82799))
[ANSWER]
['Q1224037', 'P734', {'concept': 'Q82799'}] ['Q2061837', 'P734', {'concept': 'Q82799'}] ['Q1732431', 'P734', {'concept': 'Q82799'}] ['Q1587388', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q1732431 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Dietrich Spangenberg Paul Reichert Karl Müller Hartmut Brun
Did you mean Hartmut Brun ?
Hartmut Brun
['Dietrich Spangenberg', 'family name', {'concept': 'name'}] ['Paul Reichert', 'family name', {'concept': 'name'}] ['Karl Müller', 'family name', {'concept': 'name'}] ['Hartmut Brun', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Karl_Müller property:family_name ?u . ?u rdf:type ontology:name }
[]
Simple Question (Coreferenced)
USER
No, I meant Karl Müller. Could you tell me the answer for that?
(Q1732431,P734,c(Q82799))
Q1732431
['Q1732431', 'P734', {'concept': 'Q82799'}]
['Karl Müller', 'family name', {'concept': 'name'}]
[]
Q8157228
SYSTEM
Müller
Q8157228
(Q1732431,P734,c(Q82799))
action filter_type
action find
entity Q1732431
relation P734
type Q82799
[ANSWER] is associated with that person
['Q1732431', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q1732431 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Müller
Müller is associated with that person
Müller
action filter_type
action find
entity Karl Müller
relation family name
type name
['Karl Müller', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Karl_Müller property:family_name ?u . ?u rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1732431
P27
Q1048835
USER
Which political territory is Karl Müller a civilian of ?
(Q1732431,P27,c(Q1048835))
action filter_type
action find
entity Q1732431
relation P27
type Q1048835
['Q1732431', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q1732431 property:P27 ?b . ?b rdf:type ontology:Q1048835 }
Karl Müller
action filter_type
action find
entity Karl Müller
relation country of citizenship
type political territorial entity
['Karl Müller', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Karl_Müller property:country_of_citizenship ?b . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1732431,P27,c(Q1048835))
action filter_type
action find
entity Q1732431
relation P27
type Q1048835
[ANSWER] is Karl Müller a civilian of
['Q1732431', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q1732431 property:P27 ?b . ?b rdf:type ontology:Q1048835 }
Germany
Germany is Karl Müller a civilian of
Germany
action filter_type
action find
entity Karl Müller
relation country of citizenship
type political territorial entity
['Karl Müller', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Karl_Müller property:country_of_citizenship ?b . ?b rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1732431
P102
Q7210356
USER
Which party does Karl Müller belong to ?
(Q1732431,P102,c(Q7210356))
action filter_type
action find
entity Q1732431
relation P102
type Q7210356
['Q1732431', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q1732431 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Karl Müller
action filter_type
action find
entity Karl Müller
relation member of political party
type political organization
['Karl Müller', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Karl_Müller property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
political organization
Q674695
SYSTEM
German Party
Q674695
(Q1732431,P102,c(Q7210356))
action filter_type
action find
entity Q1732431
relation P102
type Q7210356
Karl Müller belongs to [ANSWER]
['Q1732431', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q1732431 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
German Party
Karl Müller belongs to German Party
German Party
action filter_type
action find
entity Karl Müller
relation member of political party
type political organization
['Karl Müller', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Karl_Müller property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1732431
P937
Q56061
USER
Which is the work location of Karl Müller ?
(Q1732431,P937,c(Q56061))
action filter_type
action find
entity Q1732431
relation P937
type Q56061
['Q1732431', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q1732431 property:P937 ?m }
Karl Müller
action filter_type
action find
entity Karl Müller
relation work location
type administrative territorial entity
['Karl Müller', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Karl_Müller property:work_location ?m }
[]
administrative territorial entity
Q586
SYSTEM
Bonn
Q586
(Q1732431,P937,c(Q56061))
action filter_type
action find
entity Q1732431
relation P937
type Q56061
[ANSWER] is the work location of Karl Müller
['Q1732431', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q1732431 property:P937 ?m }
Bonn
Bonn is the work location of Karl Müller
Bonn
action filter_type
action find
entity Karl Müller
relation work location
type administrative territorial entity
['Karl Müller', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Karl_Müller property:work_location ?m }
[]