Simple Question (Direct)
Simple Question
Q1460918
P39
Q12737077
USER
What was the position for which Friedrich Ludwig von Geß was appointed ?
(Q1460918,P39,c(Q12737077))
action filter_type
action find
entity Q1460918
relation P39
type Q12737077
['Q1460918', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q1460918 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
Friedrich Ludwig von Geß
action filter_type
action find
entity Friedrich Ludwig von Geß
relation position held
type occupation
['Friedrich Ludwig von Geß', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Friedrich_Ludwig_von_Geß property:position_held ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q17854096
SYSTEM
member of the Reichstag of the German Empire
Q17854096
(Q1460918,P39,c(Q12737077))
action filter_type
action find
entity Q1460918
relation P39
type Q12737077
Of [ANSWER]
['Q1460918', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q1460918 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
member of the Reichstag of the German Empire
Of member of the Reichstag of the German Empire
member of the Reichstag of the German Empire
action filter_type
action find
entity Friedrich Ludwig von Geß
relation position held
type occupation
['Friedrich Ludwig von Geß', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Friedrich_Ludwig_von_Geß property:position_held ?a . ?a rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18056060 Q17854096
P361
Q1752346
USER
Which assemblies are member of the Reichstag of the German Empire or Member of the Nepalese Constituent Assembly a portion of ?
OR((Q17854096,P361,c(Q1752346)), (Q18056060,P361,c(Q1752346)))
action filter_type
action union
action find
entity Q17854096
relation P361
action find
entity Q18056060
relation P361
type Q1752346
{'OR': [['Q17854096', 'P361', {'concept': 'Q1752346'}], ['Q18056060', 'P361', {'concept': 'Q1752346'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q18056060 property:P361 ?v } UNION { resource:Q17854096 property:P361 ?v } } . ?v rdf:type ontology:Q1752346 }
Member of the Nepalese Constituent Assembly member of the Reichstag of the German Empire
action filter_type
action union
action find
entity member of the Reichstag of the German Empire
relation part of
action find
entity Member of the Nepalese Constituent Assembly
relation part of
type assembly
{'OR': [['member of the Reichstag of the German Empire', 'part of', {'concept': 'assembly'}], ['Member of the Nepalese Constituent Assembly', 'part of', {'concept': 'assembly'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Member_of_the_Nepalese_Constituent_Assembly property:part_of ?v } UNION { resource:member_of_the_Reichstag_of_the_German_Empire property:part_of ?v } } . ?v rdf:type ontology:assembly }
[]
assembly
Q3896143 Q160208
SYSTEM
Parliament of Nepal, Reichstag
Q3896143 Q160208
OR((Q17854096,P361,c(Q1752346)), (Q18056060,P361,c(Q1752346)))
action filter_type
action union
action find
entity Q17854096
relation P361
action find
entity Q18056060
relation P361
type Q1752346
The [ANSWERS] are member of the Reichstag of the German Empire or Member of the Nepalese Constituent Assembly a portion of
{'OR': [['Q17854096', 'P361', {'concept': 'Q1752346'}], ['Q18056060', 'P361', {'concept': 'Q1752346'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q18056060 property:P361 ?v } UNION { resource:Q17854096 property:P361 ?v } } . ?v rdf:type ontology:Q1752346 }
Parliament of Nepal Reichstag
The Parliament of Nepal and Reichstag are member of the Reichstag of the German Empire or Member of the Nepalese Constituent Assembly a portion of
Parliament of Nepal Reichstag
action filter_type
action union
action find
entity member of the Reichstag of the German Empire
relation part of
action find
entity Member of the Nepalese Constituent Assembly
relation part of
type assembly
{'OR': [['member of the Reichstag of the German Empire', 'part of', {'concept': 'assembly'}], ['Member of the Nepalese Constituent Assembly', 'part of', {'concept': 'assembly'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Member_of_the_Nepalese_Constituent_Assembly property:part_of ?v } UNION { resource:member_of_the_Reichstag_of_the_German_Empire property:part_of ?v } } . ?v rdf:type ontology:assembly }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q43287 Q17854096
P361 P194
Q1752346
USER
Which assemblies are member of the Reichstag of the German Empire a portion of and represent German Empire ?
AND((Q17854096,P361,c(Q1752346)), (Q43287,P194,c(Q1752346)))
action filter_type
action intersection
action find
entity Q17854096
relation P361
action find
entity Q43287
relation P194
type Q1752346
{'AND': [['Q17854096', 'P361', {'concept': 'Q1752346'}], ['Q43287', 'P194', {'concept': 'Q1752346'}]]}
SELECT DISTINCT ?e WHERE { resource:Q17854096 property:P361 ?e . resource:Q43287 property:P194 ?e . ?e rdf:type ontology:Q1752346 }
German Empire member of the Reichstag of the German Empire
action filter_type
action intersection
action find
entity member of the Reichstag of the German Empire
relation part of
action find
entity German Empire
relation legislative body
type assembly
{'AND': [['member of the Reichstag of the German Empire', 'part of', {'concept': 'assembly'}], ['German Empire', 'legislative body', {'concept': 'assembly'}]]}
SELECT DISTINCT ?e WHERE { resource:member_of_the_Reichstag_of_the_German_Empire property:part_of ?e . resource:German_Empire property:legislative_body ?e . ?e rdf:type ontology:assembly }
[]
assembly
Q160208
SYSTEM
Reichstag
Q160208
AND((Q17854096,P361,c(Q1752346)), (Q43287,P194,c(Q1752346)))
action filter_type
action intersection
action find
entity Q17854096
relation P361
action find
entity Q43287
relation P194
type Q1752346
The [ANSWER] is member of the [ANSWER] of the German Empire a portion of and represent German Empire
{'AND': [['Q17854096', 'P361', {'concept': 'Q1752346'}], ['Q43287', 'P194', {'concept': 'Q1752346'}]]}
SELECT DISTINCT ?e WHERE { resource:Q17854096 property:P361 ?e . resource:Q43287 property:P194 ?e . ?e rdf:type ontology:Q1752346 }
Reichstag
The Reichstag is member of the Reichstag of the German Empire a portion of and represent German Empire
Reichstag
action filter_type
action intersection
action find
entity member of the Reichstag of the German Empire
relation part of
action find
entity German Empire
relation legislative body
type assembly
{'AND': [['member of the Reichstag of the German Empire', 'part of', {'concept': 'assembly'}], ['German Empire', 'legislative body', {'concept': 'assembly'}]]}
SELECT DISTINCT ?e WHERE { resource:member_of_the_Reichstag_of_the_German_Empire property:part_of ?e . resource:German_Empire property:legislative_body ?e . ?e rdf:type ontology:assembly }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3561 Q1460918
P190 P937
Q56061
USER
Which administrative territories are the work locations of Friedrich Ludwig von Geß and are partner towns of Algiers ?
AND((Q1460918,P937,c(Q56061)), (Q3561,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q1460918
relation P937
action find
entity Q3561
relation P190
type Q56061
{'AND': [['Q1460918', 'P937', {'concept': 'Q56061'}], ['Q3561', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { resource:Q1460918 property:P937 ?a . resource:Q3561 property:P190 ?a . ?a rdf:type ontology:Q56061 }
Algiers Friedrich Ludwig von Geß
action filter_type
action intersection
action find
entity Friedrich Ludwig von Geß
relation work location
action find
entity Algiers
relation sister city
type administrative territorial entity
{'AND': [['Friedrich Ludwig von Geß', 'work location', {'concept': 'administrative territorial entity'}], ['Algiers', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { resource:Friedrich_Ludwig_von_Geß property:work_location ?a . resource:Algiers property:sister_city ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
AND((Q1460918,P937,c(Q56061)), (Q3561,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q1460918
relation P937
action find
entity Q3561
relation P190
type Q56061
[ANSWER] is the work locations of Friedrich Ludwig von Geß and is partner towns of Algiers
{'AND': [['Q1460918', 'P937', {'concept': 'Q56061'}], ['Q3561', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { resource:Q1460918 property:P937 ?a . resource:Q3561 property:P190 ?a . ?a rdf:type ontology:Q56061 }
Berlin
Berlin is the work locations of Friedrich Ludwig von Geß and is partner towns of Algiers
Berlin
action filter_type
action intersection
action find
entity Friedrich Ludwig von Geß
relation work location
action find
entity Algiers
relation sister city
type administrative territorial entity
{'AND': [['Friedrich Ludwig von Geß', 'work location', {'concept': 'administrative territorial entity'}], ['Algiers', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { resource:Friedrich_Ludwig_von_Geß property:work_location ?a . resource:Algiers property:sister_city ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q64 Q21809602
P6
Q502895
USER
Does Frank Charles Peyraud have that administrative territory as its head of government ?
(Q64,P6,Q21809602)
action is_in
entity Q21809602
action find
entity Q64
relation P6
['Q64', 'P6', 'Q21809602']
ASK WHERE { resource:Q64 property:P6 resource:Q21809602 }
Berlin Frank Charles Peyraud
action is_in
entity Frank Charles Peyraud
action find
entity Berlin
relation head of government
['Berlin', 'head of government', 'Frank Charles Peyraud']
ASK WHERE { resource:Berlin property:head_of_government resource:Frank_Charles_Peyraud }
[]
common name
SYSTEM
NO
(Q64,P6,Q21809602)
action is_in
entity Q21809602
action find
entity Q64
relation P6
[ANSWER]
['Q64', 'P6', 'Q21809602']
ASK WHERE { resource:Q64 property:P6 resource:Q21809602 }
No
action is_in
entity Frank Charles Peyraud
action find
entity Berlin
relation head of government
['Berlin', 'head of government', 'Frank Charles Peyraud']
ASK WHERE { resource:Berlin property:head_of_government resource:Frank_Charles_Peyraud }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3896143 Q837
P17
Q15617994
USER
Is Parliament of Nepal present in Nepal ?
(Q3896143,P17,Q837)
action is_in
entity Q837
action find
entity Q3896143
relation P17
['Q3896143', 'P17', 'Q837']
ASK WHERE { resource:Q3896143 property:P17 resource:Q837 }
Parliament of Nepal Nepal
action is_in
entity Nepal
action find
entity Parliament of Nepal
relation country
['Parliament of Nepal', 'country', 'Nepal']
ASK WHERE { resource:Parliament_of_Nepal property:country resource:Nepal }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q3896143,P17,Q837)
action is_in
entity Q837
action find
entity Q3896143
relation P17
[ANSWER]
['Q3896143', 'P17', 'Q837']
ASK WHERE { resource:Q3896143 property:P17 resource:Q837 }
Yes
action is_in
entity Nepal
action find
entity Parliament of Nepal
relation country
['Parliament of Nepal', 'country', 'Nepal']
ASK WHERE { resource:Parliament_of_Nepal property:country resource:Nepal }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q64 Q36091
P194
Q1752346
USER
How many assemblies are the legislative bodies for Berlin or Minneapolis ?
(Q64,P194,c(Q1752346)) (Q36091,P194,c(Q1752346))
action count
action union
action filter_type
action find
entity Q64
relation P194
type Q1752346
action filter_type
action find
entity Q36091
relation P194
type Q1752346
['Q64', 'P194', {'concept': 'Q1752346'}] ['Q36091', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?a property:P194 ?c . VALUES ( ?a ) { ( resource:Q64 ) ( resource:Q36091 ) } }
Berlin Minneapolis
action count
action union
action filter_type
action find
entity Berlin
relation legislative body
type assembly
action filter_type
action find
entity Minneapolis
relation legislative body
type assembly
['Berlin', 'legislative body', {'concept': 'assembly'}] ['Minneapolis', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?a property:legislative_body ?c . VALUES ( ?a ) { ( resource:Berlin ) ( resource:Minneapolis ) } }
[]
assembly
SYSTEM
2
Q6867972 Q640859
(Q64,P194,c(Q1752346)) (Q36091,P194,c(Q1752346))
action count
action union
action filter_type
action find
entity Q64
relation P194
type Q1752346
action filter_type
action find
entity Q36091
relation P194
type Q1752346
[ANSWER]
['Q64', 'P194', {'concept': 'Q1752346'}] ['Q36091', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?a property:P194 ?c . VALUES ( ?a ) { ( resource:Q64 ) ( resource:Q36091 ) } }
Minneapolis City Council Abgeordnetenhaus of Berlin
2
action count
action union
action filter_type
action find
entity Berlin
relation legislative body
type assembly
action filter_type
action find
entity Minneapolis
relation legislative body
type assembly
['Berlin', 'legislative body', {'concept': 'assembly'}] ['Minneapolis', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?a property:legislative_body ?c . VALUES ( ?a ) { ( resource:Berlin ) ( resource:Minneapolis ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P1001
Q15617994
USER
Which administrative territory has jurisdiction over Berlin ?
(c(Q15617994),P1001,Q64)
action filter_type
action find_reverse
entity Q64
relation P1001
type Q15617994
[{'concept': 'Q15617994'}, 'P1001', 'Q64']
SELECT DISTINCT ?k WHERE { ?k property:P1001 resource:Q64 . ?k rdf:type ontology:Q15617994 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation applies to jurisdiction
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'applies to jurisdiction', 'Berlin']
SELECT DISTINCT ?k WHERE { ?k property:applies_to_jurisdiction resource:Berlin . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q821435
SYSTEM
district of Berlin
Q821435
(c(Q15617994),P1001,Q64)
action filter_type
action find_reverse
entity Q64
relation P1001
type Q15617994
The [ANSWER] has jurisdiction over Berlin
[{'concept': 'Q15617994'}, 'P1001', 'Q64']
SELECT DISTINCT ?k WHERE { ?k property:P1001 resource:Q64 . ?k rdf:type ontology:Q15617994 }
district of Berlin
The district of Berlin has jurisdiction over Berlin
district of Berlin
action filter_type
action find_reverse
entity Berlin
relation applies to jurisdiction
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'applies to jurisdiction', 'Berlin']
SELECT DISTINCT ?k WHERE { ?k property:applies_to_jurisdiction resource:Berlin . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q821435
P1313
Q895526
USER
Which authority organ serves as the political office that is fulfilled by the head of the government of that administrative territory ?
(Q821435,P1313,c(Q895526))
action filter_type
action find
entity Q821435
relation P1313
type Q895526
['Q821435', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?y WHERE { resource:Q821435 property:P1313 ?y . ?y rdf:type ontology:Q895526 }
district of Berlin
action filter_type
action find
entity district of Berlin
relation office held by head of government
type authority organ
['district of Berlin', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?y WHERE { resource:district_of_Berlin property:office_held_by_head_of_government ?y . ?y rdf:type ontology:authority_organ }
[]
authority organ
Q854201
SYSTEM
district mayor
Q854201
(Q821435,P1313,c(Q895526))
action filter_type
action find
entity Q821435
relation P1313
type Q895526
The [ANSWER] serves as the political office that is fulfilled by the head of the government of that administrative territory
['Q821435', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?y WHERE { resource:Q821435 property:P1313 ?y . ?y rdf:type ontology:Q895526 }
district mayor
The district mayor serves as the political office that is fulfilled by the head of the government of that administrative territory
district mayor
action filter_type
action find
entity district of Berlin
relation office held by head of government
type authority organ
['district of Berlin', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?y WHERE { resource:district_of_Berlin property:office_held_by_head_of_government ?y . ?y rdf:type ontology:authority_organ }
[]