Simple Question (Direct)
Simple Question
Q1586155
P39
Q12737077
USER
What was the position for which Harriet Wegener was appointed ?
(Q1586155,P39,c(Q12737077))
action filter_type
action find
entity Q1586155
relation P39
type Q12737077
['Q1586155', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q1586155 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
Harriet Wegener
action filter_type
action find
entity Harriet Wegener
relation position held
type occupation
['Harriet Wegener', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Harriet_Wegener property:position_held ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q19360355
SYSTEM
Member of the Hamburg Parliament
Q19360355
(Q1586155,P39,c(Q12737077))
action filter_type
action find
entity Q1586155
relation P39
type Q12737077
Parliament [ANSWER]
['Q1586155', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q1586155 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
Member of the Hamburg Parliament
Parliament Member of the Hamburg Parliament
Member of the Hamburg Parliament
action filter_type
action find
entity Harriet Wegener
relation position held
type occupation
['Harriet Wegener', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Harriet_Wegener property:position_held ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1586155
P102
Q7210356
USER
Which parties do Harriet Wegener belong to ?
(Q1586155,P102,c(Q7210356))
action filter_type
action find
entity Q1586155
relation P102
type Q7210356
['Q1586155', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q1586155 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Harriet Wegener
action filter_type
action find
entity Harriet Wegener
relation member of political party
type political organization
['Harriet Wegener', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Harriet_Wegener property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
Q13124 Q328195
SYSTEM
Free Democratic Party, German Democratic Party
Q13124 Q328195
(Q1586155,P102,c(Q7210356))
action filter_type
action find
entity Q1586155
relation P102
type Q7210356
Harriet Wegener belong to [ANSWERS]
['Q1586155', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q1586155 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Free Democratic Party German Democratic Party
Harriet Wegener belong to Free Democratic Party and German Democratic Party
Free Democratic Party German Democratic Party
action filter_type
action find
entity Harriet Wegener
relation member of political party
type political organization
['Harriet Wegener', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Harriet_Wegener property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q13124 Q328195
P159
Q56061
USER
Where are the headquarters of Free Democratic Party and German Democratic Party located ?
(Q13124,P159,c(Q56061)) (Q328195,P159,c(Q56061))
action union
action filter_type
action find
entity Q13124
relation P159
type Q56061
action filter_type
action find
entity Q328195
relation P159
type Q56061
['Q13124', 'P159', {'concept': 'Q56061'}] ['Q328195', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { { resource:Q13124 property:P159 ?k . ?k rdf:type ontology:Q56061 } UNION { resource:Q328195 property:P159 ?k . ?k rdf:type ontology:Q56061 } }
Free Democratic Party German Democratic Party
action union
action filter_type
action find
entity Free Democratic Party
relation headquarters location
type administrative territorial entity
action filter_type
action find
entity German Democratic Party
relation headquarters location
type administrative territorial entity
['Free Democratic Party', 'headquarters location', {'concept': 'administrative territorial entity'}] ['German Democratic Party', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { resource:Free_Democratic_Party property:headquarters_location ?k . ?k rdf:type ontology:administrative_territorial_entity } UNION { resource:German_Democratic_Party property:headquarters_location ?k . ?k rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q64 Q64
SYSTEM
Berlin
Q64 Q64
(Q13124,P159,c(Q56061)) (Q328195,P159,c(Q56061))
action union
action filter_type
action find
entity Q13124
relation P159
type Q56061
action filter_type
action find
entity Q328195
relation P159
type Q56061
The headquarters of Free Democratic Party and German Democratic Party located are in [ANSWER] and [ANSWER]
['Q13124', 'P159', {'concept': 'Q56061'}] ['Q328195', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { { resource:Q13124 property:P159 ?k . ?k rdf:type ontology:Q56061 } UNION { resource:Q328195 property:P159 ?k . ?k rdf:type ontology:Q56061 } }
Berlin Berlin
The headquarters of Free Democratic Party and German Democratic Party located are in Berlin and Berlin
Berlin Berlin
action union
action filter_type
action find
entity Free Democratic Party
relation headquarters location
type administrative territorial entity
action filter_type
action find
entity German Democratic Party
relation headquarters location
type administrative territorial entity
['Free Democratic Party', 'headquarters location', {'concept': 'administrative territorial entity'}] ['German Democratic Party', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { resource:Free_Democratic_Party property:headquarters_location ?k . ?k rdf:type ontology:administrative_territorial_entity } UNION { resource:German_Democratic_Party property:headquarters_location ?k . ?k rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13124
P463
Q7210356
USER
Which political organization was Free Democratic Party a member of ?
(Q13124,P463,c(Q7210356))
action filter_type
action find
entity Q13124
relation P463
type Q7210356
['Q13124', 'P463', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q13124 property:P463 ?w . ?w rdf:type ontology:Q7210356 }
Free Democratic Party
action filter_type
action find
entity Free Democratic Party
relation member of
type political organization
['Free Democratic Party', 'member of', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Free_Democratic_Party property:member_of ?w . ?w rdf:type ontology:political_organization }
[]
political organization
Q212712
SYSTEM
Liberal International
Q212712
(Q13124,P463,c(Q7210356))
action filter_type
action find
entity Q13124
relation P463
type Q7210356
Party [ANSWER] was Free Democratic Party a member of
['Q13124', 'P463', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q13124 property:P463 ?w . ?w rdf:type ontology:Q7210356 }
Liberal International
Party Liberal International was Free Democratic Party a member of
Liberal International
action filter_type
action find
entity Free Democratic Party
relation member of
type political organization
['Free Democratic Party', 'member of', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Free_Democratic_Party property:member_of ?w . ?w rdf:type ontology:political_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q286683
Q7210356
USER
And how about Solidarity?
(Q286683,P463,c(Q7210356))
action filter_type
action find
entity Q286683
relation P463
type Q7210356
['Q286683', 'P463', {'concept': 'Q7210356'}]
SELECT DISTINCT ?r WHERE { resource:Q286683 property:P463 ?r . ?r rdf:type ontology:Q7210356 }
Solidarity
action filter_type
action find
entity Solidarity
relation member of
type political organization
['Solidarity', 'member of', {'concept': 'political organization'}]
SELECT DISTINCT ?r WHERE { resource:Solidarity property:member_of ?r . ?r rdf:type ontology:political_organization }
[]
political organization
Q1377231
SYSTEM
European Anti-Capitalist Left
Q1377231
(Q286683,P463,c(Q7210356))
action filter_type
action find
entity Q286683
relation P463
type Q7210356
[ANSWER]
['Q286683', 'P463', {'concept': 'Q7210356'}]
SELECT DISTINCT ?r WHERE { resource:Q286683 property:P463 ?r . ?r rdf:type ontology:Q7210356 }
European Anti-Capitalist Left
European Anti-Capitalist Left
action filter_type
action find
entity Solidarity
relation member of
type political organization
['Solidarity', 'member of', {'concept': 'political organization'}]
SELECT DISTINCT ?r WHERE { resource:Solidarity property:member_of ?r . ?r rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1377231 Q3555771 Q211930
P1142
Q7257
USER
Does European Anti-Capitalist Left believe in Greek nationalism and Marxism–Leninism ?
(Q1377231,P1142,Q3555771) (Q1377231,P1142,Q211930)
action is_in
entity Q1377231
action intersection
action find_reverse
entity Q3555771
relation P1142
action find_reverse
entity Q211930
relation P1142
['Q1377231', 'P1142', 'Q3555771'] ['Q1377231', 'P1142', 'Q211930']
ASK WHERE { resource:Q1377231 property:P1142 resource:Q211930 . resource:Q1377231 property:P1142 resource:Q3555771 }
European Anti-Capitalist Left Greek nationalism Marxism–Leninism
action is_in
entity European Anti-Capitalist Left
action intersection
action find_reverse
entity Greek nationalism
relation political ideology
action find_reverse
entity Marxism–Leninism
relation political ideology
['European Anti-Capitalist Left', 'political ideology', 'Greek nationalism'] ['European Anti-Capitalist Left', 'political ideology', 'Marxism–Leninism']
ASK WHERE { resource:European_Anti-Capitalist_Left property:political_ideology resource:Marxism–Leninism . resource:European_Anti-Capitalist_Left property:political_ideology resource:Greek_nationalism }
[]
ideology
SYSTEM
NO and YES respectively
(Q1377231,P1142,Q3555771) (Q1377231,P1142,Q211930)
action is_in
entity Q1377231
action intersection
action find_reverse
entity Q3555771
relation P1142
action find_reverse
entity Q211930
relation P1142
[ANSWER]
['Q1377231', 'P1142', 'Q3555771'] ['Q1377231', 'P1142', 'Q211930']
ASK WHERE { resource:Q1377231 property:P1142 resource:Q211930 . resource:Q1377231 property:P1142 resource:Q3555771 }
NO and YES respectively
action is_in
entity European Anti-Capitalist Left
action intersection
action find_reverse
entity Greek nationalism
relation political ideology
action find_reverse
entity Marxism–Leninism
relation political ideology
['European Anti-Capitalist Left', 'political ideology', 'Greek nationalism'] ['European Anti-Capitalist Left', 'political ideology', 'Marxism–Leninism']
ASK WHERE { resource:European_Anti-Capitalist_Left property:political_ideology resource:Marxism–Leninism . resource:European_Anti-Capitalist_Left property:political_ideology resource:Greek_nationalism }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q701730 Q13124
P17
Q1048835
USER
Which political territories do Free Democratic Party or Schleedorf belong to ?
OR((Q13124,P17,c(Q1048835)), (Q701730,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q13124
relation P17
action find
entity Q701730
relation P17
type Q1048835
{'OR': [['Q13124', 'P17', {'concept': 'Q1048835'}], ['Q701730', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?m ) { ( resource:Q13124 ) ( resource:Q701730 ) } . ?m property:P17 ?c } . ?c rdf:type ontology:Q1048835 }
Schleedorf Free Democratic Party
action filter_type
action union
action find
entity Free Democratic Party
relation country
action find
entity Schleedorf
relation country
type political territorial entity
{'OR': [['Free Democratic Party', 'country', {'concept': 'political territorial entity'}], ['Schleedorf', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?m ) { ( resource:Free_Democratic_Party ) ( resource:Schleedorf ) } . ?m property:country ?c } . ?c rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q40
SYSTEM
Germany, Austria
Q183 Q40
OR((Q13124,P17,c(Q1048835)), (Q701730,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q13124
relation P17
action find
entity Q701730
relation P17
type Q1048835
Free Democratic Party or Schleedorf belong to Nazi [ANSWERS]
{'OR': [['Q13124', 'P17', {'concept': 'Q1048835'}], ['Q701730', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?m ) { ( resource:Q13124 ) ( resource:Q701730 ) } . ?m property:P17 ?c } . ?c rdf:type ontology:Q1048835 }
Germany Austria
Free Democratic Party or Schleedorf belong to Nazi Germany and Austria
Germany Austria
action filter_type
action union
action find
entity Free Democratic Party
relation country
action find
entity Schleedorf
relation country
type political territorial entity
{'OR': [['Free Democratic Party', 'country', {'concept': 'political territorial entity'}], ['Schleedorf', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?m ) { ( resource:Free_Democratic_Party ) ( resource:Schleedorf ) } . ?m property:country ?c } . ?c rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q183 Q40
P937
Q502895
USER
Which people have Germany and Austria as their work location ?
(c(Q502895),P937,Q183) (c(Q502895),P937,Q40)
action union
action filter_type
action find_reverse
entity Q183
relation P937
type Q502895
action filter_type
action find_reverse
entity Q40
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q183'] [{'concept': 'Q502895'}, 'P937', 'Q40']
SELECT DISTINCT ?x WHERE { { ?x property:P937 resource:Q183 . ?x rdf:type ontology:Q502895 } UNION { ?x property:P937 resource:Q40 . ?x rdf:type ontology:Q502895 } }
Germany Austria
action union
action filter_type
action find_reverse
entity Germany
relation work location
type common name
action filter_type
action find_reverse
entity Austria
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Germany'] [{'concept': 'common name'}, 'work location', 'Austria']
SELECT DISTINCT ?x WHERE { { ?x property:work_location resource:Germany . ?x rdf:type ontology:common_name } UNION { ?x property:work_location resource:Austria . ?x rdf:type ontology:common_name } }
[]
common name
Q442048 Q698102 Q261389
SYSTEM
Snježana Kordić, William Patrick Stuart-Houston, Princess Isabella of Croÿ
Q325922 Q18516466 Q20890576 Q698102 Q442048 Q90201 Q113581 Q261389 Q345771 Q22133416 Q874606
(c(Q502895),P937,Q183) (c(Q502895),P937,Q40)
action union
action filter_type
action find_reverse
entity Q183
relation P937
type Q502895
action filter_type
action find_reverse
entity Q40
relation P937
type Q502895
[ANSWERS] have Germany and Austria as their work location
[{'concept': 'Q502895'}, 'P937', 'Q183'] [{'concept': 'Q502895'}, 'P937', 'Q40']
SELECT DISTINCT ?x WHERE { { ?x property:P937 resource:Q183 . ?x rdf:type ontology:Q502895 } UNION { ?x property:P937 resource:Q40 . ?x rdf:type ontology:Q502895 } }
Hans Aarsman Clement de Jonghe Roman Lipski William Patrick Stuart-Houston Snježana Kordić Boris Brainin Conchita Wurst Princess Isabella of Croÿ Joshua Sinclair Jennifer Lacey Otto Friedrich
Snježana Kordić, William Patrick Stuart-Houston and Princess Isabella of Croÿ have Germany and Austria as their work location
Snježana Kordić William Patrick Stuart-Houston Princess Isabella of Croÿ
action union
action filter_type
action find_reverse
entity Germany
relation work location
type common name
action filter_type
action find_reverse
entity Austria
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Germany'] [{'concept': 'common name'}, 'work location', 'Austria']
SELECT DISTINCT ?x WHERE { { ?x property:work_location resource:Germany . ?x rdf:type ontology:common_name } UNION { ?x property:work_location resource:Austria . ?x rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q261389
P22
Q502895
USER
Which person was the father of that one ?
(Q261389,P22,c(Q502895))
action filter_type
action find
entity Q261389
relation P22
type Q502895
['Q261389', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q261389 property:P22 ?p }
Princess Isabella of Croÿ
action filter_type
action find
entity Princess Isabella of Croÿ
relation father
type common name
['Princess Isabella of Croÿ', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Princess_Isabella_of_Croÿ property:father ?p }
[]
common name
Clarification for simple ques.
Q261389
SYSTEM
Did you mean Princess Isabella of Croÿ ?
Q442048 Q698102 Q261389
(Q442048,P22,c(Q502895)) (Q698102,P22,c(Q502895)) (Q261389,P22,c(Q502895))
[ANSWER]
['Q442048', 'P22', {'concept': 'Q502895'}] ['Q698102', 'P22', {'concept': 'Q502895'}] ['Q261389', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q261389 property:P22 ?p }
Snježana Kordić William Patrick Stuart-Houston Princess Isabella of Croÿ
Did you mean Princess Isabella of Croÿ ?
Princess Isabella of Croÿ
['Snježana Kordić', 'father', {'concept': 'common name'}] ['William Patrick Stuart-Houston', 'father', {'concept': 'common name'}] ['Princess Isabella of Croÿ', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Princess_Isabella_of_Croÿ property:father ?p }
[]
Simple Question (Coreferenced)
USER
Yes
(Q261389,P22,c(Q502895))
['Q261389', 'P22', {'concept': 'Q502895'}]
['Princess Isabella of Croÿ', 'father', {'concept': 'common name'}]
[]
Q2174225
SYSTEM
Rodolphe de Croÿ
Q2174225
(Q261389,P22,c(Q502895))
action filter_type
action find
entity Q261389
relation P22
type Q502895
[ANSWER] was the father of that one
['Q261389', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q261389 property:P22 ?p }
Rodolphe de Croÿ
Rodolphe de Croÿ was the father of that one
Rodolphe de Croÿ
action filter_type
action find
entity Princess Isabella of Croÿ
relation father
type common name
['Princess Isabella of Croÿ', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Princess_Isabella_of_Croÿ property:father ?p }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q145 Q212712
P466 P17
Q811979
USER
Which architectural structures were inhabited by Liberal International and are located in United Kingdom ?
AND((c(Q811979),P466,Q212712), (c(Q811979),P17,Q145))
action filter_type
action intersection
action find_reverse
entity Q212712
relation P466
action find_reverse
entity Q145
relation P17
type Q811979
{'AND': [[{'concept': 'Q811979'}, 'P466', 'Q212712'], [{'concept': 'Q811979'}, 'P17', 'Q145']]}
SELECT DISTINCT ?z WHERE { ?z property:P466 resource:Q212712 . ?z property:P17 resource:Q145 . ?z rdf:type ontology:Q811979 }
United Kingdom Liberal International
action filter_type
action intersection
action find_reverse
entity Liberal International
relation occupant
action find_reverse
entity United Kingdom
relation country
type architectural structure
{'AND': [[{'concept': 'architectural structure'}, 'occupant', 'Liberal International'], [{'concept': 'architectural structure'}, 'country', 'United Kingdom']]}
SELECT DISTINCT ?z WHERE { ?z property:occupant resource:Liberal_International . ?z property:country resource:United_Kingdom . ?z rdf:type ontology:architectural_structure }
[]
architectural structure
Q7995986
SYSTEM
Whitehall Court
Q7995986
AND((c(Q811979),P466,Q212712), (c(Q811979),P17,Q145))
action filter_type
action intersection
action find_reverse
entity Q212712
relation P466
action find_reverse
entity Q145
relation P17
type Q811979
[ANSWER] was inhabited by Liberal International and are located in United Kingdom
{'AND': [[{'concept': 'Q811979'}, 'P466', 'Q212712'], [{'concept': 'Q811979'}, 'P17', 'Q145']]}
SELECT DISTINCT ?z WHERE { ?z property:P466 resource:Q212712 . ?z property:P17 resource:Q145 . ?z rdf:type ontology:Q811979 }
Whitehall Court
Whitehall Court was inhabited by Liberal International and are located in United Kingdom
Whitehall Court
action filter_type
action intersection
action find_reverse
entity Liberal International
relation occupant
action find_reverse
entity United Kingdom
relation country
type architectural structure
{'AND': [[{'concept': 'architectural structure'}, 'occupant', 'Liberal International'], [{'concept': 'architectural structure'}, 'country', 'United Kingdom']]}
SELECT DISTINCT ?z WHERE { ?z property:occupant resource:Liberal_International . ?z property:country resource:United_Kingdom . ?z rdf:type ontology:architectural_structure }
[]