Simple Question (Direct)
Simple Question
Q1733713
P512
Q3412758
USER
What degree does Karl Zahn hold ?
(Q1733713,P512,c(Q3412758))
action filter_type
action find
entity Q1733713
relation P512
type Q3412758
['Q1733713', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?v WHERE { resource:Q1733713 property:P512 ?v . ?v rdf:type ontology:Q3412758 }
Karl Zahn
action filter_type
action find
entity Karl Zahn
relation academic degree
type qualification
['Karl Zahn', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?v WHERE { resource:Karl_Zahn property:academic_degree ?v . ?v rdf:type ontology:qualification }
[]
qualification
Q959320
SYSTEM
Doctor of Law
Q959320
(Q1733713,P512,c(Q3412758))
action filter_type
action find
entity Q1733713
relation P512
type Q3412758
Karl Zahn holds a [ANSWER]
['Q1733713', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?v WHERE { resource:Q1733713 property:P512 ?v . ?v rdf:type ontology:Q3412758 }
Doctor of Law
Karl Zahn holds a Doctor of Law
Doctor of Law
action filter_type
action find
entity Karl Zahn
relation academic degree
type qualification
['Karl Zahn', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?v WHERE { resource:Karl_Zahn property:academic_degree ?v . ?v rdf:type ontology:qualification }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1733713
P937
Q56061
USER
What is the work location of that person ?
(Q959320,P937,c(Q56061))
action filter_type
action find
entity Q1733713
relation P937
type Q56061
['Q959320', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q1733713 property:P937 ?z . ?z rdf:type ontology:Q56061 }
Karl Zahn
action filter_type
action find
entity Karl Zahn
relation work location
type administrative territorial entity
['Doctor of Law', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Karl_Zahn property:work_location ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q959320,P937,c(Q56061))
action filter_type
action find
entity Q1733713
relation P937
type Q56061
The work location of that person is in [ANSWER]
['Q959320', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q1733713 property:P937 ?z . ?z rdf:type ontology:Q56061 }
Berlin
The work location of that person is in Berlin
Berlin
action filter_type
action find
entity Karl Zahn
relation work location
type administrative territorial entity
['Doctor of Law', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Karl_Zahn property:work_location ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P190
Q1147395 Q56061
USER
How many districts of Turkey or administrative territories are twin city of that administrative territory ?
(c(Q1147395),P190,Q64) (c(Q56061),P190,Q64) (c(Q1147395),P190,Q64) (c(Q56061),P190,Q64)
action count
action union
action filter_type
action find_reverse
entity Q64
relation P190
type Q1147395
action filter_type
action find_reverse
entity Q64
relation P190
type Q56061
[{'concept': 'Q1147395'}, 'P190', 'Q64'] [{'concept': 'Q56061'}, 'P190', 'Q64'] [{'concept': 'Q1147395'}, 'P190', 'Q64'] [{'concept': 'Q56061'}, 'P190', 'Q64']
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { ?q property:P190 resource:Q64 . ?q rdf:type ontology:Q1147395 } UNION { ?q property:P190 resource:Q64 . ?q rdf:type ontology:Q56061 } }
action count
action union
action filter_type
action find_reverse
entity Berlin
relation sister city
type district of Turkey
action filter_type
action find_reverse
entity Berlin
relation sister city
type administrative territorial entity
[{'concept': 'district of Turkey'}, 'sister city', 'Berlin'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Berlin'] [{'concept': 'district of Turkey'}, 'sister city', 'Berlin'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Berlin']
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { ?q property:sister_city resource:Berlin . ?q rdf:type ontology:district_of_Turkey } UNION { ?q property:sister_city resource:Berlin . ?q rdf:type ontology:administrative_territorial_entity } }
[]
district of Turkey administrative territorial entity
SYSTEM
19
Q269 Q1489 Q3630 Q1748 Q34820 Q217411 Q649 Q239 Q3561 Q472 Q2807 Q956 Q270 Q84 Q1490 Q65 Q406 Q1085 Q1781
(c(Q1147395),P190,Q64) (c(Q56061),P190,Q64) (c(Q1147395),P190,Q64) (c(Q56061),P190,Q64)
action count
action union
action filter_type
action find_reverse
entity Q64
relation P190
type Q1147395
action filter_type
action find_reverse
entity Q64
relation P190
type Q56061
[ANSWER]
[{'concept': 'Q1147395'}, 'P190', 'Q64'] [{'concept': 'Q56061'}, 'P190', 'Q64'] [{'concept': 'Q1147395'}, 'P190', 'Q64'] [{'concept': 'Q56061'}, 'P190', 'Q64']
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { ?q property:P190 resource:Q64 . ?q rdf:type ontology:Q1147395 } UNION { ?q property:P190 resource:Q64 . ?q rdf:type ontology:Q56061 } }
Tashkent Mexico City Jakarta Copenhagen Santo Domingo Beyoğlu Moscow Brussels Algiers Sofia Madrid Beijing Warsaw London Tokyo Los Angeles Istanbul Prague Budapest
19
action count
action union
action filter_type
action find_reverse
entity Berlin
relation sister city
type district of Turkey
action filter_type
action find_reverse
entity Berlin
relation sister city
type administrative territorial entity
[{'concept': 'district of Turkey'}, 'sister city', 'Berlin'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Berlin'] [{'concept': 'district of Turkey'}, 'sister city', 'Berlin'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Berlin']
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { ?q property:sister_city resource:Berlin . ?q rdf:type ontology:district_of_Turkey } UNION { ?q property:sister_city resource:Berlin . ?q rdf:type ontology:administrative_territorial_entity } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q64
P17
Q183366 Q7275
USER
How many territories or states are Berlin located in ?
(Q64,P17,c(Q183366)) (Q64,P17,c(Q7275))
action count
action union
action filter_type
action find
entity Q64
relation P17
type Q183366
action filter_type
action find
entity Q64
relation P17
type Q7275
['Q64', 'P17', {'concept': 'Q183366'}] ['Q64', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { resource:Q64 property:P17 ?b . ?b rdf:type ontology:Q183366 } UNION { resource:Q64 property:P17 ?b . ?b rdf:type ontology:Q7275 } }
Berlin
action count
action union
action filter_type
action find
entity Berlin
relation country
type territory
action filter_type
action find
entity Berlin
relation country
type state
['Berlin', 'country', {'concept': 'territory'}] ['Berlin', 'country', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { resource:Berlin property:country ?b . ?b rdf:type ontology:territory } UNION { resource:Berlin property:country ?b . ?b rdf:type ontology:state } }
[]
territory state
SYSTEM
7
Q157367 Q27306 Q150981 Q55300 Q41304 Q7318 Q16957
(Q64,P17,c(Q183366)) (Q64,P17,c(Q7275))
action count
action union
action filter_type
action find
entity Q64
relation P17
type Q183366
action filter_type
action find
entity Q64
relation P17
type Q7275
[ANSWER]
['Q64', 'P17', {'concept': 'Q183366'}] ['Q64', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { resource:Q64 property:P17 ?b . ?b rdf:type ontology:Q183366 } UNION { resource:Q64 property:P17 ?b . ?b rdf:type ontology:Q7275 } }
Brandenburg-Prussia Kingdom of Prussia North German Confederation Soviet occupation zone Weimar Republic Nazi Germany East Germany
7
action count
action union
action filter_type
action find
entity Berlin
relation country
type territory
action filter_type
action find
entity Berlin
relation country
type state
['Berlin', 'country', {'concept': 'territory'}] ['Berlin', 'country', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { resource:Berlin property:country ?b . ?b rdf:type ontology:territory } UNION { resource:Berlin property:country ?b . ?b rdf:type ontology:state } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3344783 Q64
P161 P6
Q502895
USER
Which people are the heads of the government of Berlin or starred in Notre univers impitoyable ?
OR((Q64,P6,c(Q502895)), (Q3344783,P161,c(Q502895)))
action filter_type
action union
action find
entity Q64
relation P6
action find
entity Q3344783
relation P161
type Q502895
{'OR': [['Q64', 'P6', {'concept': 'Q502895'}], ['Q3344783', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q3344783 property:P161 ?l } UNION { resource:Q64 property:P6 ?l } } . ?l rdf:type ontology:Q502895 }
Notre univers impitoyable Berlin
action filter_type
action union
action find
entity Berlin
relation head of government
action find
entity Notre univers impitoyable
relation cast member
type common name
{'OR': [['Berlin', 'head of government', {'concept': 'common name'}], ['Notre univers impitoyable', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Notre_univers_impitoyable property:cast_member ?l } UNION { resource:Berlin property:head_of_government ?l } } . ?l rdf:type ontology:common_name }
[]
common name
Q239033 Q213561 Q650878 Q61085 Q265232 Q69232 Q2514 Q68748 Q215756 Q552483
SYSTEM
Some of them are Pascale Arbillot, Ernst Reuter, Otto Suhr, Walter Momper, Alice Taglioni, Walther Schreiber, Willy Brandt, Dietrich Stobbe, Klaus Schütz, Hans-Jochen Vogel
Q8863 Q239033 Q61085 Q2514 Q650878 Q548400 Q213561 Q3474928 Q102844 Q68748 Q984019 Q69232 Q3270014 Q966378 Q2567 Q60957 Q705862 Q552483 Q3155008 Q265232 Q96399 Q215756
OR((Q64,P6,c(Q502895)), (Q3344783,P161,c(Q502895)))
action filter_type
action union
action find
entity Q64
relation P6
action find
entity Q3344783
relation P161
type Q502895
[ANSWERS] are the heads of the government of Berlin or starred in Notre univers impitoyable
{'OR': [['Q64', 'P6', {'concept': 'Q502895'}], ['Q3344783', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q3344783 property:P161 ?l } UNION { resource:Q64 property:P6 ?l } } . ?l rdf:type ontology:Q502895 }
Klaus Wowereit Pascale Arbillot Walter Momper Willy Brandt Otto Suhr Thierry Lhermitte Ernst Reuter Scali Delpeyrat Michael Müller Dietrich Stobbe Jocelyn Quivrin Walther Schreiber Léa Fazer Julie Ferrier Richard von Weizsäcker Eberhard Diepgen Heinrich Albertz Hans-Jochen Vogel Isabelle Petit-Jacques Alice Taglioni Franz Amrehn Klaus Schütz
Pascale Arbillot, Ernst Reuter, Otto Suhr, Walter Momper, Alice Taglioni, Walther Schreiber, Willy Brandt, Dietrich Stobbe, Klaus Schütz and Hans-Jochen Vogel are the heads of the government of Berlin or starred in Notre univers impitoyable
Pascale Arbillot Ernst Reuter Otto Suhr Walter Momper Alice Taglioni Walther Schreiber Willy Brandt Dietrich Stobbe Klaus Schütz Hans-Jochen Vogel
action filter_type
action union
action find
entity Berlin
relation head of government
action find
entity Notre univers impitoyable
relation cast member
type common name
{'OR': [['Berlin', 'head of government', {'concept': 'common name'}], ['Notre univers impitoyable', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Notre_univers_impitoyable property:cast_member ?l } UNION { resource:Berlin property:head_of_government ?l } } . ?l rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P102
Q7210356 Q7278
USER
How many political organizations or political parties are that person a member of ?
(Q69232,P102,c(Q7210356)) (Q69232,P102,c(Q7278)) (Q239033,P102,c(Q7210356)) (Q239033,P102,c(Q7278)) (Q213561,P102,c(Q7210356)) (Q213561,P102,c(Q7278)) (Q650878,P102,c(Q7210356)) (Q650878,P102,c(Q7278)) (Q61085,P102,c(Q7210356)) (Q61085,P102,c(Q7278)) (Q265232,P102,c(Q7210356)) (Q265232,P102,c(Q7278)) (Q69232,P102,c(Q7210356)) (Q69232,P102,c(Q7278)) (Q2514,P102,c(Q7210356)) (Q2514,P102,c(Q7278)) (Q68748,P102,c(Q7210356)) (Q68748,P102,c(Q7278)) (Q215756,P102,c(Q7210356)) (Q215756,P102,c(Q7278)) (Q552483,P102,c(Q7210356)) (Q552483,P102,c(Q7278))
['Q69232', 'P102', {'concept': 'Q7210356'}] ['Q69232', 'P102', {'concept': 'Q7278'}] ['Q239033', 'P102', {'concept': 'Q7210356'}] ['Q239033', 'P102', {'concept': 'Q7278'}] ['Q213561', 'P102', {'concept': 'Q7210356'}] ['Q213561', 'P102', {'concept': 'Q7278'}] ['Q650878', 'P102', {'concept': 'Q7210356'}] ['Q650878', 'P102', {'concept': 'Q7278'}] ['Q61085', 'P102', {'concept': 'Q7210356'}] ['Q61085', 'P102', {'concept': 'Q7278'}] ['Q265232', 'P102', {'concept': 'Q7210356'}] ['Q265232', 'P102', {'concept': 'Q7278'}] ['Q69232', 'P102', {'concept': 'Q7210356'}] ['Q69232', 'P102', {'concept': 'Q7278'}] ['Q2514', 'P102', {'concept': 'Q7210356'}] ['Q2514', 'P102', {'concept': 'Q7278'}] ['Q68748', 'P102', {'concept': 'Q7210356'}] ['Q68748', 'P102', {'concept': 'Q7278'}] ['Q215756', 'P102', {'concept': 'Q7210356'}] ['Q215756', 'P102', {'concept': 'Q7278'}] ['Q552483', 'P102', {'concept': 'Q7210356'}] ['Q552483', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Q69232 property:P102 ?z } UNION { resource:Q69232 property:P102 ?y } UNION { resource:Q239033 property:P102 ?z } UNION { resource:Q239033 property:P102 ?y } UNION { resource:Q213561 property:P102 ?z } UNION { resource:Q213561 property:P102 ?y } UNION { resource:Q650878 property:P102 ?z } UNION { resource:Q650878 property:P102 ?y } UNION { resource:Q61085 property:P102 ?z } UNION { resource:Q61085 property:P102 ?y } UNION { resource:Q265232 property:P102 ?z } UNION { resource:Q265232 property:P102 ?y } UNION { resource:Q69232 property:P102 ?z } UNION { resource:Q69232 property:P102 ?y } UNION { resource:Q2514 property:P102 ?z } UNION { resource:Q2514 property:P102 ?y } UNION { resource:Q68748 property:P102 ?z } UNION { resource:Q68748 property:P102 ?y } UNION { resource:Q215756 property:P102 ?z } UNION { resource:Q215756 property:P102 ?y } UNION { resource:Q552483 property:P102 ?z } UNION { resource:Q552483 property:P102 ?y } } . ?z rdf:type ontology:Q7210356 . ?y rdf:type ontology:Q7278 }
['Walther Schreiber', 'member of political party', {'concept': 'political organization'}] ['Walther Schreiber', 'member of political party', {'concept': 'political party'}] ['Pascale Arbillot', 'member of political party', {'concept': 'political organization'}] ['Pascale Arbillot', 'member of political party', {'concept': 'political party'}] ['Ernst Reuter', 'member of political party', {'concept': 'political organization'}] ['Ernst Reuter', 'member of political party', {'concept': 'political party'}] ['Otto Suhr', 'member of political party', {'concept': 'political organization'}] ['Otto Suhr', 'member of political party', {'concept': 'political party'}] ['Walter Momper', 'member of political party', {'concept': 'political organization'}] ['Walter Momper', 'member of political party', {'concept': 'political party'}] ['Alice Taglioni', 'member of political party', {'concept': 'political organization'}] ['Alice Taglioni', 'member of political party', {'concept': 'political party'}] ['Walther Schreiber', 'member of political party', {'concept': 'political organization'}] ['Walther Schreiber', 'member of political party', {'concept': 'political party'}] ['Willy Brandt', 'member of political party', {'concept': 'political organization'}] ['Willy Brandt', 'member of political party', {'concept': 'political party'}] ['Dietrich Stobbe', 'member of political party', {'concept': 'political organization'}] ['Dietrich Stobbe', 'member of political party', {'concept': 'political party'}] ['Klaus Schütz', 'member of political party', {'concept': 'political organization'}] ['Klaus Schütz', 'member of political party', {'concept': 'political party'}] ['Hans-Jochen Vogel', 'member of political party', {'concept': 'political organization'}] ['Hans-Jochen Vogel', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Walther_Schreiber property:member_of_political_party ?z } UNION { resource:Walther_Schreiber property:member_of_political_party ?y } UNION { resource:Pascale_Arbillot property:member_of_political_party ?z } UNION { resource:Pascale_Arbillot property:member_of_political_party ?y } UNION { resource:Ernst_Reuter property:member_of_political_party ?z } UNION { resource:Ernst_Reuter property:member_of_political_party ?y } UNION { resource:Otto_Suhr property:member_of_political_party ?z } UNION { resource:Otto_Suhr property:member_of_political_party ?y } UNION { resource:Walter_Momper property:member_of_political_party ?z } UNION { resource:Walter_Momper property:member_of_political_party ?y } UNION { resource:Alice_Taglioni property:member_of_political_party ?z } UNION { resource:Alice_Taglioni property:member_of_political_party ?y } UNION { resource:Walther_Schreiber property:member_of_political_party ?z } UNION { resource:Walther_Schreiber property:member_of_political_party ?y } UNION { resource:Willy_Brandt property:member_of_political_party ?z } UNION { resource:Willy_Brandt property:member_of_political_party ?y } UNION { resource:Dietrich_Stobbe property:member_of_political_party ?z } UNION { resource:Dietrich_Stobbe property:member_of_political_party ?y } UNION { resource:Klaus_Schütz property:member_of_political_party ?z } UNION { resource:Klaus_Schütz property:member_of_political_party ?y } UNION { resource:Hans-Jochen_Vogel property:member_of_political_party ?z } UNION { resource:Hans-Jochen_Vogel property:member_of_political_party ?y } } . ?z rdf:type ontology:political_organization . ?y rdf:type ontology:political_party }
[]
political organization political party
Quantitative|Count|Mult. entity type|Clarification
Q68748
SYSTEM
Did you mean Dietrich Stobbe ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Q69232 property:P102 ?z } UNION { resource:Q69232 property:P102 ?y } UNION { resource:Q239033 property:P102 ?z } UNION { resource:Q239033 property:P102 ?y } UNION { resource:Q213561 property:P102 ?z } UNION { resource:Q213561 property:P102 ?y } UNION { resource:Q650878 property:P102 ?z } UNION { resource:Q650878 property:P102 ?y } UNION { resource:Q61085 property:P102 ?z } UNION { resource:Q61085 property:P102 ?y } UNION { resource:Q265232 property:P102 ?z } UNION { resource:Q265232 property:P102 ?y } UNION { resource:Q69232 property:P102 ?z } UNION { resource:Q69232 property:P102 ?y } UNION { resource:Q2514 property:P102 ?z } UNION { resource:Q2514 property:P102 ?y } UNION { resource:Q68748 property:P102 ?z } UNION { resource:Q68748 property:P102 ?y } UNION { resource:Q215756 property:P102 ?z } UNION { resource:Q215756 property:P102 ?y } UNION { resource:Q552483 property:P102 ?z } UNION { resource:Q552483 property:P102 ?y } } . ?z rdf:type ontology:Q7210356 . ?y rdf:type ontology:Q7278 }
Did you mean Dietrich Stobbe ?
Dietrich Stobbe
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Walther_Schreiber property:member_of_political_party ?z } UNION { resource:Walther_Schreiber property:member_of_political_party ?y } UNION { resource:Pascale_Arbillot property:member_of_political_party ?z } UNION { resource:Pascale_Arbillot property:member_of_political_party ?y } UNION { resource:Ernst_Reuter property:member_of_political_party ?z } UNION { resource:Ernst_Reuter property:member_of_political_party ?y } UNION { resource:Otto_Suhr property:member_of_political_party ?z } UNION { resource:Otto_Suhr property:member_of_political_party ?y } UNION { resource:Walter_Momper property:member_of_political_party ?z } UNION { resource:Walter_Momper property:member_of_political_party ?y } UNION { resource:Alice_Taglioni property:member_of_political_party ?z } UNION { resource:Alice_Taglioni property:member_of_political_party ?y } UNION { resource:Walther_Schreiber property:member_of_political_party ?z } UNION { resource:Walther_Schreiber property:member_of_political_party ?y } UNION { resource:Willy_Brandt property:member_of_political_party ?z } UNION { resource:Willy_Brandt property:member_of_political_party ?y } UNION { resource:Dietrich_Stobbe property:member_of_political_party ?z } UNION { resource:Dietrich_Stobbe property:member_of_political_party ?y } UNION { resource:Klaus_Schütz property:member_of_political_party ?z } UNION { resource:Klaus_Schütz property:member_of_political_party ?y } UNION { resource:Hans-Jochen_Vogel property:member_of_political_party ?z } UNION { resource:Hans-Jochen_Vogel property:member_of_political_party ?y } } . ?z rdf:type ontology:political_organization . ?y rdf:type ontology:political_party }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Walther Schreiber. Could you tell me the answer for that?
(Q69232,P102,c(Q7210356)) (Q69232,P102,c(Q7278)) (Q239033,P102,c(Q7210356)) (Q239033,P102,c(Q7278)) (Q213561,P102,c(Q7210356)) (Q213561,P102,c(Q7278)) (Q650878,P102,c(Q7210356)) (Q650878,P102,c(Q7278)) (Q61085,P102,c(Q7210356)) (Q61085,P102,c(Q7278)) (Q265232,P102,c(Q7210356)) (Q265232,P102,c(Q7278)) (Q69232,P102,c(Q7210356)) (Q69232,P102,c(Q7278)) (Q2514,P102,c(Q7210356)) (Q2514,P102,c(Q7278)) (Q68748,P102,c(Q7210356)) (Q68748,P102,c(Q7278)) (Q215756,P102,c(Q7210356)) (Q215756,P102,c(Q7278)) (Q552483,P102,c(Q7210356)) (Q552483,P102,c(Q7278))
Q69232
['Q69232', 'P102', {'concept': 'Q7210356'}] ['Q69232', 'P102', {'concept': 'Q7278'}] ['Q239033', 'P102', {'concept': 'Q7210356'}] ['Q239033', 'P102', {'concept': 'Q7278'}] ['Q213561', 'P102', {'concept': 'Q7210356'}] ['Q213561', 'P102', {'concept': 'Q7278'}] ['Q650878', 'P102', {'concept': 'Q7210356'}] ['Q650878', 'P102', {'concept': 'Q7278'}] ['Q61085', 'P102', {'concept': 'Q7210356'}] ['Q61085', 'P102', {'concept': 'Q7278'}] ['Q265232', 'P102', {'concept': 'Q7210356'}] ['Q265232', 'P102', {'concept': 'Q7278'}] ['Q69232', 'P102', {'concept': 'Q7210356'}] ['Q69232', 'P102', {'concept': 'Q7278'}] ['Q2514', 'P102', {'concept': 'Q7210356'}] ['Q2514', 'P102', {'concept': 'Q7278'}] ['Q68748', 'P102', {'concept': 'Q7210356'}] ['Q68748', 'P102', {'concept': 'Q7278'}] ['Q215756', 'P102', {'concept': 'Q7210356'}] ['Q215756', 'P102', {'concept': 'Q7278'}] ['Q552483', 'P102', {'concept': 'Q7210356'}] ['Q552483', 'P102', {'concept': 'Q7278'}]
['Walther Schreiber', 'member of political party', {'concept': 'political organization'}] ['Walther Schreiber', 'member of political party', {'concept': 'political party'}] ['Pascale Arbillot', 'member of political party', {'concept': 'political organization'}] ['Pascale Arbillot', 'member of political party', {'concept': 'political party'}] ['Ernst Reuter', 'member of political party', {'concept': 'political organization'}] ['Ernst Reuter', 'member of political party', {'concept': 'political party'}] ['Otto Suhr', 'member of political party', {'concept': 'political organization'}] ['Otto Suhr', 'member of political party', {'concept': 'political party'}] ['Walter Momper', 'member of political party', {'concept': 'political organization'}] ['Walter Momper', 'member of political party', {'concept': 'political party'}] ['Alice Taglioni', 'member of political party', {'concept': 'political organization'}] ['Alice Taglioni', 'member of political party', {'concept': 'political party'}] ['Walther Schreiber', 'member of political party', {'concept': 'political organization'}] ['Walther Schreiber', 'member of political party', {'concept': 'political party'}] ['Willy Brandt', 'member of political party', {'concept': 'political organization'}] ['Willy Brandt', 'member of political party', {'concept': 'political party'}] ['Dietrich Stobbe', 'member of political party', {'concept': 'political organization'}] ['Dietrich Stobbe', 'member of political party', {'concept': 'political party'}] ['Klaus Schütz', 'member of political party', {'concept': 'political organization'}] ['Klaus Schütz', 'member of political party', {'concept': 'political party'}] ['Hans-Jochen Vogel', 'member of political party', {'concept': 'political organization'}] ['Hans-Jochen Vogel', 'member of political party', {'concept': 'political party'}]
[]
SYSTEM
2
Q49762 Q328195
(Q69232,P102,c(Q7210356)) (Q69232,P102,c(Q7278)) (Q239033,P102,c(Q7210356)) (Q239033,P102,c(Q7278)) (Q213561,P102,c(Q7210356)) (Q213561,P102,c(Q7278)) (Q650878,P102,c(Q7210356)) (Q650878,P102,c(Q7278)) (Q61085,P102,c(Q7210356)) (Q61085,P102,c(Q7278)) (Q265232,P102,c(Q7210356)) (Q265232,P102,c(Q7278)) (Q69232,P102,c(Q7210356)) (Q69232,P102,c(Q7278)) (Q2514,P102,c(Q7210356)) (Q2514,P102,c(Q7278)) (Q68748,P102,c(Q7210356)) (Q68748,P102,c(Q7278)) (Q215756,P102,c(Q7210356)) (Q215756,P102,c(Q7278)) (Q552483,P102,c(Q7210356)) (Q552483,P102,c(Q7278))
[ANSWER]
['Q69232', 'P102', {'concept': 'Q7210356'}] ['Q69232', 'P102', {'concept': 'Q7278'}] ['Q239033', 'P102', {'concept': 'Q7210356'}] ['Q239033', 'P102', {'concept': 'Q7278'}] ['Q213561', 'P102', {'concept': 'Q7210356'}] ['Q213561', 'P102', {'concept': 'Q7278'}] ['Q650878', 'P102', {'concept': 'Q7210356'}] ['Q650878', 'P102', {'concept': 'Q7278'}] ['Q61085', 'P102', {'concept': 'Q7210356'}] ['Q61085', 'P102', {'concept': 'Q7278'}] ['Q265232', 'P102', {'concept': 'Q7210356'}] ['Q265232', 'P102', {'concept': 'Q7278'}] ['Q69232', 'P102', {'concept': 'Q7210356'}] ['Q69232', 'P102', {'concept': 'Q7278'}] ['Q2514', 'P102', {'concept': 'Q7210356'}] ['Q2514', 'P102', {'concept': 'Q7278'}] ['Q68748', 'P102', {'concept': 'Q7210356'}] ['Q68748', 'P102', {'concept': 'Q7278'}] ['Q215756', 'P102', {'concept': 'Q7210356'}] ['Q215756', 'P102', {'concept': 'Q7278'}] ['Q552483', 'P102', {'concept': 'Q7210356'}] ['Q552483', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Q69232 property:P102 ?z } UNION { resource:Q69232 property:P102 ?y } UNION { resource:Q239033 property:P102 ?z } UNION { resource:Q239033 property:P102 ?y } UNION { resource:Q213561 property:P102 ?z } UNION { resource:Q213561 property:P102 ?y } UNION { resource:Q650878 property:P102 ?z } UNION { resource:Q650878 property:P102 ?y } UNION { resource:Q61085 property:P102 ?z } UNION { resource:Q61085 property:P102 ?y } UNION { resource:Q265232 property:P102 ?z } UNION { resource:Q265232 property:P102 ?y } UNION { resource:Q69232 property:P102 ?z } UNION { resource:Q69232 property:P102 ?y } UNION { resource:Q2514 property:P102 ?z } UNION { resource:Q2514 property:P102 ?y } UNION { resource:Q68748 property:P102 ?z } UNION { resource:Q68748 property:P102 ?y } UNION { resource:Q215756 property:P102 ?z } UNION { resource:Q215756 property:P102 ?y } UNION { resource:Q552483 property:P102 ?z } UNION { resource:Q552483 property:P102 ?y } } . ?z rdf:type ontology:Q7210356 . ?y rdf:type ontology:Q7278 }
Christian Democratic Union German Democratic Party
2
['Walther Schreiber', 'member of political party', {'concept': 'political organization'}] ['Walther Schreiber', 'member of political party', {'concept': 'political party'}] ['Pascale Arbillot', 'member of political party', {'concept': 'political organization'}] ['Pascale Arbillot', 'member of political party', {'concept': 'political party'}] ['Ernst Reuter', 'member of political party', {'concept': 'political organization'}] ['Ernst Reuter', 'member of political party', {'concept': 'political party'}] ['Otto Suhr', 'member of political party', {'concept': 'political organization'}] ['Otto Suhr', 'member of political party', {'concept': 'political party'}] ['Walter Momper', 'member of political party', {'concept': 'political organization'}] ['Walter Momper', 'member of political party', {'concept': 'political party'}] ['Alice Taglioni', 'member of political party', {'concept': 'political organization'}] ['Alice Taglioni', 'member of political party', {'concept': 'political party'}] ['Walther Schreiber', 'member of political party', {'concept': 'political organization'}] ['Walther Schreiber', 'member of political party', {'concept': 'political party'}] ['Willy Brandt', 'member of political party', {'concept': 'political organization'}] ['Willy Brandt', 'member of political party', {'concept': 'political party'}] ['Dietrich Stobbe', 'member of political party', {'concept': 'political organization'}] ['Dietrich Stobbe', 'member of political party', {'concept': 'political party'}] ['Klaus Schütz', 'member of political party', {'concept': 'political organization'}] ['Klaus Schütz', 'member of political party', {'concept': 'political party'}] ['Hans-Jochen Vogel', 'member of political party', {'concept': 'political organization'}] ['Hans-Jochen Vogel', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Walther_Schreiber property:member_of_political_party ?z } UNION { resource:Walther_Schreiber property:member_of_political_party ?y } UNION { resource:Pascale_Arbillot property:member_of_political_party ?z } UNION { resource:Pascale_Arbillot property:member_of_political_party ?y } UNION { resource:Ernst_Reuter property:member_of_political_party ?z } UNION { resource:Ernst_Reuter property:member_of_political_party ?y } UNION { resource:Otto_Suhr property:member_of_political_party ?z } UNION { resource:Otto_Suhr property:member_of_political_party ?y } UNION { resource:Walter_Momper property:member_of_political_party ?z } UNION { resource:Walter_Momper property:member_of_political_party ?y } UNION { resource:Alice_Taglioni property:member_of_political_party ?z } UNION { resource:Alice_Taglioni property:member_of_political_party ?y } UNION { resource:Walther_Schreiber property:member_of_political_party ?z } UNION { resource:Walther_Schreiber property:member_of_political_party ?y } UNION { resource:Willy_Brandt property:member_of_political_party ?z } UNION { resource:Willy_Brandt property:member_of_political_party ?y } UNION { resource:Dietrich_Stobbe property:member_of_political_party ?z } UNION { resource:Dietrich_Stobbe property:member_of_political_party ?y } UNION { resource:Klaus_Schütz property:member_of_political_party ?z } UNION { resource:Klaus_Schütz property:member_of_political_party ?y } UNION { resource:Hans-Jochen_Vogel property:member_of_political_party ?z } UNION { resource:Hans-Jochen_Vogel property:member_of_political_party ?y } } . ?z rdf:type ontology:political_organization . ?y rdf:type ontology:political_party }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2514
P108
Q56061 Q1048835
USER
How many administrative territories and political territories are the workplaces of Willy Brandt ?
(Q2514,P108,c(Q56061)) (Q2514,P108,c(Q1048835))
action count
action union
action filter_type
action find
entity Q2514
relation P108
type Q56061
action filter_type
action find
entity Q2514
relation P108
type Q1048835
['Q2514', 'P108', {'concept': 'Q56061'}] ['Q2514', 'P108', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } }
Willy Brandt
action count
action union
action filter_type
action find
entity Willy Brandt
relation employer
type administrative territorial entity
action filter_type
action find
entity Willy Brandt
relation employer
type political territorial entity
['Willy Brandt', 'employer', {'concept': 'administrative territorial entity'}] ['Willy Brandt', 'employer', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } }
[]
administrative territorial entity political territorial entity
SYSTEM
1 administrative territories and 1 political territories
Q64 Q183
(Q2514,P108,c(Q56061)) (Q2514,P108,c(Q1048835))
action count
action union
action filter_type
action find
entity Q2514
relation P108
type Q56061
action filter_type
action find
entity Q2514
relation P108
type Q1048835
[ANSWER]
['Q2514', 'P108', {'concept': 'Q56061'}] ['Q2514', 'P108', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } }
Berlin Germany
1 administrative territories and 1 political territories
action count
action union
action filter_type
action find
entity Willy Brandt
relation employer
type administrative territorial entity
action filter_type
action find
entity Willy Brandt
relation employer
type political territorial entity
['Willy Brandt', 'employer', {'concept': 'administrative territorial entity'}] ['Willy Brandt', 'employer', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q2514 Q980
P937
Q56061
USER
How many administrative territories are the work locations of Willy Brandt and Bavaria ?
(Q2514,P937,c(Q56061)) (Q980,P937,c(Q56061))
action count
action intersection
action filter_type
action find
entity Q2514
relation P937
type Q56061
action filter_type
action find
entity Q980
relation P937
type Q56061
['Q2514', 'P937', {'concept': 'Q56061'}] ['Q980', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { resource:Q2514 property:P937 ?s . ?s rdf:type ontology:Q56061 . resource:Q980 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Willy Brandt Bavaria
action count
action intersection
action filter_type
action find
entity Willy Brandt
relation work location
type administrative territorial entity
action filter_type
action find
entity Bavaria
relation work location
type administrative territorial entity
['Willy Brandt', 'work location', {'concept': 'administrative territorial entity'}] ['Bavaria', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { resource:Willy_Brandt property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity . resource:Bavaria property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
2
Q64 Q586
(Q2514,P937,c(Q56061)) (Q980,P937,c(Q56061))
action count
action intersection
action filter_type
action find
entity Q2514
relation P937
type Q56061
action filter_type
action find
entity Q980
relation P937
type Q56061
[ANSWER]
['Q2514', 'P937', {'concept': 'Q56061'}] ['Q980', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { resource:Q2514 property:P937 ?s . ?s rdf:type ontology:Q56061 . resource:Q980 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Berlin Bonn
2
action count
action intersection
action filter_type
action find
entity Willy Brandt
relation work location
type administrative territorial entity
action filter_type
action find
entity Bavaria
relation work location
type administrative territorial entity
['Willy Brandt', 'work location', {'concept': 'administrative territorial entity'}] ['Bavaria', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { resource:Willy_Brandt property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity . resource:Bavaria property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]