Simple Question (Direct)
Simple Question
Q1598739
P102
Q7210356
USER
Which party is Heinrich Schlagewerth affiliated with ?
(Q1598739,P102,c(Q7210356))
action filter_type
action find
entity Q1598739
relation P102
type Q7210356
['Q1598739', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?r WHERE { resource:Q1598739 property:P102 ?r . ?r rdf:type ontology:Q7210356 }
Heinrich Schlagewerth
action filter_type
action find
entity Heinrich Schlagewerth
relation member of political party
type political organization
['Heinrich Schlagewerth', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?r WHERE { resource:Heinrich_Schlagewerth property:member_of_political_party ?r . ?r rdf:type ontology:political_organization }
[]
political organization
Q310296
SYSTEM
Independent Social Democratic Party of Germany
Q310296
(Q1598739,P102,c(Q7210356))
action filter_type
action find
entity Q1598739
relation P102
type Q7210356
Heinrich Schlagewerth is affiliated with [ANSWER]
['Q1598739', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?r WHERE { resource:Q1598739 property:P102 ?r . ?r rdf:type ontology:Q7210356 }
Independent Social Democratic Party of Germany
Heinrich Schlagewerth is affiliated with Independent Social Democratic Party of Germany
Independent Social Democratic Party of Germany
action filter_type
action find
entity Heinrich Schlagewerth
relation member of political party
type political organization
['Heinrich Schlagewerth', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?r WHERE { resource:Heinrich_Schlagewerth property:member_of_political_party ?r . ?r rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1598739
P39
Q12737077
USER
What was the position held by Heinrich Schlagewerth ?
(Q1598739,P39,c(Q12737077))
action filter_type
action find
entity Q1598739
relation P39
type Q12737077
['Q1598739', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q1598739 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
Heinrich Schlagewerth
action filter_type
action find
entity Heinrich Schlagewerth
relation position held
type occupation
['Heinrich Schlagewerth', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Heinrich_Schlagewerth property:position_held ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q17850767
SYSTEM
member of the Reichstag of the Weimar Republic
Q17850767
(Q1598739,P39,c(Q12737077))
action filter_type
action find
entity Q1598739
relation P39
type Q12737077
The position held by Heinrich Schlagewerth was a [ANSWER]
['Q1598739', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q1598739 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
member of the Reichstag of the Weimar Republic
The position held by Heinrich Schlagewerth was a member of the Reichstag of the Weimar Republic
member of the Reichstag of the Weimar Republic
action filter_type
action find
entity Heinrich Schlagewerth
relation position held
type occupation
['Heinrich Schlagewerth', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Heinrich_Schlagewerth property:position_held ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1598739
P19
Q515
USER
Where was Heinrich Schlagewerth born ?
(Q1598739,P19,c(Q515))
action filter_type
action find
entity Q1598739
relation P19
type Q515
['Q1598739', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { resource:Q1598739 property:P19 ?y . ?y rdf:type ontology:Q515 }
Heinrich Schlagewerth
action filter_type
action find
entity Heinrich Schlagewerth
relation place of birth
type city
['Heinrich Schlagewerth', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { resource:Heinrich_Schlagewerth property:place_of_birth ?y . ?y rdf:type ontology:city }
[]
city
Q2100
SYSTEM
Duisburg
Q2100
(Q1598739,P19,c(Q515))
action filter_type
action find
entity Q1598739
relation P19
type Q515
Heinrich Schlagewerth was born in [ANSWER]
['Q1598739', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { resource:Q1598739 property:P19 ?y . ?y rdf:type ontology:Q515 }
Duisburg
Heinrich Schlagewerth was born in Duisburg
Duisburg
action filter_type
action find
entity Heinrich Schlagewerth
relation place of birth
type city
['Heinrich Schlagewerth', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { resource:Heinrich_Schlagewerth property:place_of_birth ?y . ?y rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1598739
P21
Q290
USER
Which sex does Heinrich Schlagewerth belong to ?
(Q1598739,P21,c(Q290))
action filter_type
action find
entity Q1598739
relation P21
type Q290
['Q1598739', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q1598739 property:P21 ?a . ?a rdf:type ontology:Q290 }
Heinrich Schlagewerth
action filter_type
action find
entity Heinrich Schlagewerth
relation gender
type sex
['Heinrich Schlagewerth', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Heinrich_Schlagewerth property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1598739,P21,c(Q290))
action filter_type
action find
entity Q1598739
relation P21
type Q290
Heinrich Schlagewerth belongs to [ANSWER]
['Q1598739', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q1598739 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
Heinrich Schlagewerth belongs to male
male
action filter_type
action find
entity Heinrich Schlagewerth
relation gender
type sex
['Heinrich Schlagewerth', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Heinrich_Schlagewerth property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1350739
Q290
USER
And also tell me about Erhard Ahlrichs?
(Q1350739,P21,c(Q290))
action filter_type
action find
entity Q1350739
relation P21
type Q290
['Q1350739', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q1350739 property:P21 ?r . ?r rdf:type ontology:Q290 }
Erhard Ahlrichs
action filter_type
action find
entity Erhard Ahlrichs
relation gender
type sex
['Erhard Ahlrichs', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Erhard_Ahlrichs property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1350739,P21,c(Q290))
action filter_type
action find
entity Q1350739
relation P21
type Q290
[ANSWER]
['Q1350739', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q1350739 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Erhard Ahlrichs
relation gender
type sex
['Erhard Ahlrichs', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Erhard_Ahlrichs property:gender ?r . ?r rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q15998646
P21
Q502895
USER
Is Bert Cartman a that sex ?
(Q15998646,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q15998646
relation P21
['Q15998646', 'P21', 'Q6581097']
ASK WHERE { resource:Q15998646 property:P21 resource:Q6581097 }
male Bert Cartman
action is_in
entity male
action find
entity Bert Cartman
relation gender
['Bert Cartman', 'gender', 'male']
ASK WHERE { resource:Bert_Cartman property:gender resource:male }
[]
common name
SYSTEM
YES
(Q15998646,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q15998646
relation P21
[ANSWER]
['Q15998646', 'P21', 'Q6581097']
ASK WHERE { resource:Q15998646 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Bert Cartman
relation gender
['Bert Cartman', 'gender', 'male']
ASK WHERE { resource:Bert_Cartman property:gender resource:male }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q595822 Q1350739
P106
Q12737077
USER
Which occupations are the professions of Erhard Ahlrichs or Antonín Závodný ?
OR((Q1350739,P106,c(Q12737077)), (Q595822,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1350739
relation P106
action find
entity Q595822
relation P106
type Q12737077
{'OR': [['Q1350739', 'P106', {'concept': 'Q12737077'}], ['Q595822', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { { ?j property:P106 ?s . VALUES ( ?j ) { ( resource:Q1350739 ) ( resource:Q595822 ) } } . ?s rdf:type ontology:Q12737077 }
Antonín Závodný Erhard Ahlrichs
action filter_type
action union
action find
entity Erhard Ahlrichs
relation occupation
action find
entity Antonín Závodný
relation occupation
type occupation
{'OR': [['Erhard Ahlrichs', 'occupation', {'concept': 'occupation'}], ['Antonín Závodný', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { { ?j property:occupation ?s . VALUES ( ?j ) { ( resource:Erhard_Ahlrichs ) ( resource:Antonín_Závodný ) } } . ?s rdf:type ontology:occupation }
[]
occupation
Q201788 Q36180 Q36834
SYSTEM
historian, writer, composer
Q201788 Q36180 Q36834
OR((Q1350739,P106,c(Q12737077)), (Q595822,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1350739
relation P106
action find
entity Q595822
relation P106
type Q12737077
The [ANSWERS] are the professions of Erhard Ahlrichs or Antonín Závodný
{'OR': [['Q1350739', 'P106', {'concept': 'Q12737077'}], ['Q595822', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { { ?j property:P106 ?s . VALUES ( ?j ) { ( resource:Q1350739 ) ( resource:Q595822 ) } } . ?s rdf:type ontology:Q12737077 }
historian writer composer
The historian, writer and composer are the professions of Erhard Ahlrichs or Antonín Závodný
historian writer composer
action filter_type
action union
action find
entity Erhard Ahlrichs
relation occupation
action find
entity Antonín Závodný
relation occupation
type occupation
{'OR': [['Erhard Ahlrichs', 'occupation', {'concept': 'occupation'}], ['Antonín Závodný', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { { ?j property:occupation ?s . VALUES ( ?j ) { ( resource:Erhard_Ahlrichs ) ( resource:Antonín_Závodný ) } } . ?s rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q105690
P106
Q502895
USER
Do August Högn have the profession as those occupations ?
(Q105690,P106,Q201788) (Q105690,P106,Q36180) (Q105690,P106,Q36834)
action is_in
entity prev_answer
action find
entity Q105690
relation P106
['Q105690', 'P106', 'Q201788'] ['Q105690', 'P106', 'Q36180'] ['Q105690', 'P106', 'Q36834']
ASK WHERE { VALUES ( ?c ) { ( resource:Q201788 ) ( resource:Q36180 ) ( resource:Q36834 ) } . resource:Q105690 property:P106 ?c }
August Högn
action is_in
entity prev_answer
action find
entity August Högn
relation occupation
['August Högn', 'occupation', 'historian'] ['August Högn', 'occupation', 'writer'] ['August Högn', 'occupation', 'composer']
ASK WHERE { VALUES ( ?c ) { ( resource:historian ) ( resource:writer ) ( resource:composer ) } . resource:August_Högn property:occupation ?c }
[]
common name
SYSTEM
YES
(Q105690,P106,Q201788) (Q105690,P106,Q36180) (Q105690,P106,Q36834)
action is_in
entity prev_answer
action find
entity Q105690
relation P106
[ANSWER]
['Q105690', 'P106', 'Q201788'] ['Q105690', 'P106', 'Q36180'] ['Q105690', 'P106', 'Q36834']
ASK WHERE { VALUES ( ?c ) { ( resource:Q201788 ) ( resource:Q36180 ) ( resource:Q36834 ) } . resource:Q105690 property:P106 ?c }
Yes
action is_in
entity prev_answer
action find
entity August Högn
relation occupation
['August Högn', 'occupation', 'historian'] ['August Högn', 'occupation', 'writer'] ['August Högn', 'occupation', 'composer']
ASK WHERE { VALUES ( ?c ) { ( resource:historian ) ( resource:writer ) ( resource:composer ) } . resource:August_Högn property:occupation ?c }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q17850767 Q355699
P361
Q1752346
USER
Is member of the Reichstag of the Weimar Republic a portion of Austrian Landtage ?
(Q17850767,P361,Q355699)
action is_in
entity Q355699
action find
entity Q17850767
relation P361
['Q17850767', 'P361', 'Q355699']
ASK WHERE { resource:Q17850767 property:P361 resource:Q355699 }
member of the Reichstag of the Weimar Republic Austrian Landtage
action is_in
entity Austrian Landtage
action find
entity member of the Reichstag of the Weimar Republic
relation part of
['member of the Reichstag of the Weimar Republic', 'part of', 'Austrian Landtage']
ASK WHERE { resource:member_of_the_Reichstag_of_the_Weimar_Republic property:part_of resource:Austrian_Landtage }
[]
assembly
SYSTEM
NO
(Q17850767,P361,Q355699)
action is_in
entity Q355699
action find
entity Q17850767
relation P361
[ANSWER]
['Q17850767', 'P361', 'Q355699']
ASK WHERE { resource:Q17850767 property:P361 resource:Q355699 }
No
action is_in
entity Austrian Landtage
action find
entity member of the Reichstag of the Weimar Republic
relation part of
['member of the Reichstag of the Weimar Republic', 'part of', 'Austrian Landtage']
ASK WHERE { resource:member_of_the_Reichstag_of_the_Weimar_Republic property:part_of resource:Austrian_Landtage }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2100
P47
Q56061 Q15617994
USER
How many administrative territories or administrative territories are bordered by Duisburg ?
(c(Q56061),P47,Q2100) (c(Q15617994),P47,Q2100)
action count
action union
action filter_type
action find_reverse
entity Q2100
relation P47
type Q56061
action filter_type
action find_reverse
entity Q2100
relation P47
type Q15617994
[{'concept': 'Q56061'}, 'P47', 'Q2100'] [{'concept': 'Q15617994'}, 'P47', 'Q2100']
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { VALUES ( ?n ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } . ?k rdf:type ?n }
Duisburg
action count
action union
action filter_type
action find_reverse
entity Duisburg
relation shares border with
type administrative territorial entity
action filter_type
action find_reverse
entity Duisburg
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Duisburg'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Duisburg']
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { VALUES ( ?n ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?k rdf:type ?n }
[]
administrative territorial entity designation for an administrative territorial entity
SYSTEM
5
Q2838 Q2899 Q1718 Q4105 Q2805
(c(Q56061),P47,Q2100) (c(Q15617994),P47,Q2100)
action count
action union
action filter_type
action find_reverse
entity Q2100
relation P47
type Q56061
action filter_type
action find_reverse
entity Q2100
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q56061'}, 'P47', 'Q2100'] [{'concept': 'Q15617994'}, 'P47', 'Q2100']
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { VALUES ( ?n ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } . ?k rdf:type ?n }
Oberhausen Mülheim an der Ruhr Düsseldorf Meerbusch Krefeld
5
action count
action union
action filter_type
action find_reverse
entity Duisburg
relation shares border with
type administrative territorial entity
action filter_type
action find_reverse
entity Duisburg
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Duisburg'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Duisburg']
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { VALUES ( ?n ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?k rdf:type ?n }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q310296 Q438913
P488
Q502895
USER
Was Hugo Haase the chairperson of Independent Social Democratic Party of Germany ?
(Q310296,P488,Q438913)
action is_in
entity Q438913
action find
entity Q310296
relation P488
['Q310296', 'P488', 'Q438913']
ASK WHERE { resource:Q310296 property:P488 resource:Q438913 }
Independent Social Democratic Party of Germany Hugo Haase
action is_in
entity Hugo Haase
action find
entity Independent Social Democratic Party of Germany
relation chairperson
['Independent Social Democratic Party of Germany', 'chairperson', 'Hugo Haase']
ASK WHERE { resource:Independent_Social_Democratic_Party_of_Germany property:chairperson resource:Hugo_Haase }
[]
common name
SYSTEM
YES
(Q310296,P488,Q438913)
action is_in
entity Q438913
action find
entity Q310296
relation P488
[ANSWER]
['Q310296', 'P488', 'Q438913']
ASK WHERE { resource:Q310296 property:P488 resource:Q438913 }
Yes
action is_in
entity Hugo Haase
action find
entity Independent Social Democratic Party of Germany
relation chairperson
['Independent Social Democratic Party of Germany', 'chairperson', 'Hugo Haase']
ASK WHERE { resource:Independent_Social_Democratic_Party_of_Germany property:chairperson resource:Hugo_Haase }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q17850767 Q637829
P361
Q1752346
USER
Is member of the Reichstag of the Weimar Republic a part of Reichstag ?
(Q17850767,P361,Q637829)
action is_in
entity Q637829
action find
entity Q17850767
relation P361
['Q17850767', 'P361', 'Q637829']
ASK WHERE { resource:Q17850767 property:P361 resource:Q637829 }
member of the Reichstag of the Weimar Republic Reichstag
action is_in
entity Reichstag
action find
entity member of the Reichstag of the Weimar Republic
relation part of
['member of the Reichstag of the Weimar Republic', 'part of', 'Reichstag']
ASK WHERE { resource:member_of_the_Reichstag_of_the_Weimar_Republic property:part_of resource:Reichstag }
[]
assembly
SYSTEM
YES
(Q17850767,P361,Q637829)
action is_in
entity Q637829
action find
entity Q17850767
relation P361
[ANSWER]
['Q17850767', 'P361', 'Q637829']
ASK WHERE { resource:Q17850767 property:P361 resource:Q637829 }
Yes
action is_in
entity Reichstag
action find
entity member of the Reichstag of the Weimar Republic
relation part of
['member of the Reichstag of the Weimar Republic', 'part of', 'Reichstag']
ASK WHERE { resource:member_of_the_Reichstag_of_the_Weimar_Republic property:part_of resource:Reichstag }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1598739 Q2467651
P937
Q56061
USER
Is Spodnje Jablane the work location of Heinrich Schlagewerth ?
(Q1598739,P937,Q2467651)
action is_in
entity Q2467651
action find
entity Q1598739
relation P937
['Q1598739', 'P937', 'Q2467651']
ASK WHERE { resource:Q1598739 property:P937 resource:Q2467651 }
Heinrich Schlagewerth Spodnje Jablane
action is_in
entity Spodnje Jablane
action find
entity Heinrich Schlagewerth
relation work location
['Heinrich Schlagewerth', 'work location', 'Spodnje Jablane']
ASK WHERE { resource:Heinrich_Schlagewerth property:work_location resource:Spodnje_Jablane }
[]
administrative territorial entity
SYSTEM
NO
(Q1598739,P937,Q2467651)
action is_in
entity Q2467651
action find
entity Q1598739
relation P937
[ANSWER]
['Q1598739', 'P937', 'Q2467651']
ASK WHERE { resource:Q1598739 property:P937 resource:Q2467651 }
No
action is_in
entity Spodnje Jablane
action find
entity Heinrich Schlagewerth
relation work location
['Heinrich Schlagewerth', 'work location', 'Spodnje Jablane']
ASK WHERE { resource:Heinrich_Schlagewerth property:work_location resource:Spodnje_Jablane }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1598739
P20
Q515
USER
Where did that person expire ?
action filter_type
action find
entity Q1598739
relation P20
type Q515
SELECT DISTINCT ?g WHERE { resource:Q1598739 property:P20 ?g . ?g rdf:type ontology:Q515 }
Heinrich Schlagewerth
action filter_type
action find
entity Heinrich Schlagewerth
relation place of death
type city
SELECT DISTINCT ?g WHERE { resource:Heinrich_Schlagewerth property:place_of_death ?g . ?g rdf:type ontology:city }
[]
city
Q2100
SYSTEM
Duisburg
Q2100
action filter_type
action find
entity Q1598739
relation P20
type Q515
That person expired in [ANSWER]
SELECT DISTINCT ?g WHERE { resource:Q1598739 property:P20 ?g . ?g rdf:type ontology:Q515 }
Duisburg
That person expired in Duisburg
Duisburg
action filter_type
action find
entity Heinrich Schlagewerth
relation place of death
type city
SELECT DISTINCT ?g WHERE { resource:Heinrich_Schlagewerth property:place_of_death ?g . ?g rdf:type ontology:city }
[]