Simple Question (Direct)
Simple Question
Q2278947
P106
Q12737077
USER
What is the profession of Arie de Zeeuw ?
(Q2278947,P106,c(Q12737077))
action filter_type
action find
entity Q2278947
relation P106
type Q12737077
['Q2278947', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q2278947 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Arie de Zeeuw
action filter_type
action find
entity Arie de Zeeuw
relation occupation
type occupation
['Arie de Zeeuw', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Arie_de_Zeeuw property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q2278947,P106,c(Q12737077))
action filter_type
action find
entity Q2278947
relation P106
type Q12737077
The profession of Arie de Zeeuw is a [ANSWER]
['Q2278947', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q2278947 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
politician
The profession of Arie de Zeeuw is a politician
politician
action filter_type
action find
entity Arie de Zeeuw
relation occupation
type occupation
['Arie de Zeeuw', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Arie_de_Zeeuw property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2278947
P102
Q7210356
USER
Which party is that person affiliated with ?
(Q82955,P102,c(Q7210356))
action filter_type
action find
entity Q2278947
relation P102
type Q7210356
['Q82955', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?r WHERE { resource:Q2278947 property:P102 ?r . ?r rdf:type ontology:Q7210356 }
Arie de Zeeuw
action filter_type
action find
entity Arie de Zeeuw
relation member of political party
type political organization
['politician', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?r WHERE { resource:Arie_de_Zeeuw property:member_of_political_party ?r . ?r rdf:type ontology:political_organization }
[]
political organization
Q2558701
SYSTEM
Social Democratic Workers' Party
Q2558701
(Q82955,P102,c(Q7210356))
action filter_type
action find
entity Q2278947
relation P102
type Q7210356
That person is affiliated with [ANSWER]
['Q82955', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?r WHERE { resource:Q2278947 property:P102 ?r . ?r rdf:type ontology:Q7210356 }
Social Democratic Workers' Party
That person is affiliated with Social Democratic Workers' Party
Social Democratic Workers' Party
action filter_type
action find
entity Arie de Zeeuw
relation member of political party
type political organization
['politician', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?r WHERE { resource:Arie_de_Zeeuw property:member_of_political_party ?r . ?r rdf:type ontology:political_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q67584
Q7210356
USER
And also tell me about Kurt Becher?
(Q67584,P102,c(Q7210356))
action filter_type
action find
entity Q67584
relation P102
type Q7210356
['Q67584', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q7210356 . resource:Q67584 property:P102 ?h }
Kurt Becher
action filter_type
action find
entity Kurt Becher
relation member of political party
type political organization
['Kurt Becher', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:political_organization . resource:Kurt_Becher property:member_of_political_party ?h }
[]
political organization
Q7320
SYSTEM
Nazi Party
Q7320
(Q67584,P102,c(Q7210356))
action filter_type
action find
entity Q67584
relation P102
type Q7210356
[ANSWER]
['Q67584', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q7210356 . resource:Q67584 property:P102 ?h }
Nazi Party
Nazi Party
action filter_type
action find
entity Kurt Becher
relation member of political party
type political organization
['Kurt Becher', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:political_organization . resource:Kurt_Becher property:member_of_political_party ?h }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q7320 Q45149
P102
Q502895
USER
Does Josef Uridil belong to the political party named that one ?
(Q45149,P102,Q7320)
action is_in
entity Q7320
action find
entity Q45149
relation P102
['Q45149', 'P102', 'Q7320']
ASK WHERE { resource:Q45149 property:P102 resource:Q7320 }
Nazi Party Josef Uridil
action is_in
entity Nazi Party
action find
entity Josef Uridil
relation member of political party
['Josef Uridil', 'member of political party', 'Nazi Party']
ASK WHERE { resource:Josef_Uridil property:member_of_political_party resource:Nazi_Party }
[]
common name
SYSTEM
YES
(Q45149,P102,Q7320)
action is_in
entity Q7320
action find
entity Q45149
relation P102
[ANSWER]
['Q45149', 'P102', 'Q7320']
ASK WHERE { resource:Q45149 property:P102 resource:Q7320 }
Yes
action is_in
entity Nazi Party
action find
entity Josef Uridil
relation member of political party
['Josef Uridil', 'member of political party', 'Nazi Party']
ASK WHERE { resource:Josef_Uridil property:member_of_political_party resource:Nazi_Party }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q49763 Q7320
P102
Q502895
USER
Which people belong to the political party named Nazi Party and Christian Social Union of Bavaria ?
AND((c(Q502895),P102,Q7320), (c(Q502895),P102,Q49763))
action filter_type
action intersection
action find_reverse
entity Q7320
relation P102
action find_reverse
entity Q49763
relation P102
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q7320'], [{'concept': 'Q502895'}, 'P102', 'Q49763']]}
SELECT DISTINCT ?l WHERE { ?l property:P102 resource:Q49763 . ?l property:P102 resource:Q7320 . ?l rdf:type ontology:Q502895 }
Christian Social Union of Bavaria Nazi Party
action filter_type
action intersection
action find_reverse
entity Nazi Party
relation member of political party
action find_reverse
entity Christian Social Union of Bavaria
relation member of political party
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'Nazi Party'], [{'concept': 'common name'}, 'member of political party', 'Christian Social Union of Bavaria']]}
SELECT DISTINCT ?l WHERE { ?l property:member_of_political_party resource:Christian_Social_Union_of_Bavaria . ?l property:member_of_political_party resource:Nazi_Party . ?l rdf:type ontology:common_name }
[]
common name
Q95849 Q86802 Q1265706 Q559686 Q49707 Q15818665 Q1460359 Q1358025 Q2645885 Q15434159
SYSTEM
Some of them are Alois Niederalt, Max Frauendorfer, Ludwig Schönecker, Franz Schönhuber, Georg Bachmann, Gustav Hilger, Fritz Kempfler, Ernst Falkner, Alfred Seidl, Gerhard Baumann
Q2645885 Q74254 Q1460359 Q1580226 Q49707 Q107984 Q536095 Q2531479 Q1754969 Q1506070 Q102062 Q559686 Q124182 Q481434 Q95849 Q1426027 Q1354301 Q1472171 Q64440 Q110156 Q104992 Q1504490 Q2417987 Q2562785 Q15434159 Q1728021 Q1358025 Q454669 Q1582796 Q69115 Q65529 Q101621 Q15818665 Q74289 Q86802 Q95858 Q2283889 Q1265706 Q114596 Q1388536 Q1705154 Q110485 Q86843
AND((c(Q502895),P102,Q7320), (c(Q502895),P102,Q49763))
action filter_type
action intersection
action find_reverse
entity Q7320
relation P102
action find_reverse
entity Q49763
relation P102
type Q502895
[ANSWERS] belong to the political party named Nazi Party and Christian Social Union of Bavaria
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q7320'], [{'concept': 'Q502895'}, 'P102', 'Q49763']]}
SELECT DISTINCT ?l WHERE { ?l property:P102 resource:Q49763 . ?l property:P102 resource:Q7320 . ?l rdf:type ontology:Q502895 }
Alfred Seidl Heinz Starke Fritz Kempfler Hans Herrmann Georg Bachmann Hans Drachsler Angelo Kramel Volkmar Hopf Wolfgang Klausner Georg Stadtmüller Walter Eckhardt Franz Schönhuber Alfred Biehle Alfons Goppel Alois Niederalt Hans Wellhausen Hermann Strathmann Philipp Meyer Friedrich August Freiherr von der Heydte Walter Becher Stefan Dittrich Georg Henckel von Donnersmarck Theodor Maunz Werner Tutter Gerhard Baumann Wolfgang Pohle Ernst Falkner Richard Stücklen Hans Troßmann Hermann Höcherl Friedrich Zimmermann Peter Deeg Gustav Hilger Hans Joachim Sewering Max Frauendorfer Oscar Schneider Siegfried Zoglmann Ludwig Schönecker Josef Bauer Max Gisbert Kley Josef Listl Hans Schütz Bolko von Richthofen
Alois Niederalt, Max Frauendorfer, Ludwig Schönecker, Franz Schönhuber, Georg Bachmann, Gustav Hilger, Fritz Kempfler, Ernst Falkner, Alfred Seidl and Gerhard Baumann belong to the political party named Nazi Party and Christian Social Union of Bavaria
Alois Niederalt Max Frauendorfer Ludwig Schönecker Franz Schönhuber Georg Bachmann Gustav Hilger Fritz Kempfler Ernst Falkner Alfred Seidl Gerhard Baumann
action filter_type
action intersection
action find_reverse
entity Nazi Party
relation member of political party
action find_reverse
entity Christian Social Union of Bavaria
relation member of political party
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'Nazi Party'], [{'concept': 'common name'}, 'member of political party', 'Christian Social Union of Bavaria']]}
SELECT DISTINCT ?l WHERE { ?l property:member_of_political_party resource:Christian_Social_Union_of_Bavaria . ?l property:member_of_political_party resource:Nazi_Party . ?l rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16229270 Q2278947
P27
Q15617994
USER
Which administrative territories are the native countriesof Arie de Zeeuw or Hesham Shehab ?
OR((Q2278947,P27,c(Q15617994)), (Q16229270,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2278947
relation P27
action find
entity Q16229270
relation P27
type Q15617994
{'OR': [['Q2278947', 'P27', {'concept': 'Q15617994'}], ['Q16229270', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q2278947 property:P27 ?g } UNION { resource:Q16229270 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
Hesham Shehab Arie de Zeeuw
action filter_type
action union
action find
entity Arie de Zeeuw
relation country of citizenship
action find
entity Hesham Shehab
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Arie de Zeeuw', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hesham Shehab', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Arie_de_Zeeuw property:country_of_citizenship ?g } UNION { resource:Hesham_Shehab property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29999 Q398
SYSTEM
Kingdom of the Netherlands, Bahrain
Q29999 Q398
OR((Q2278947,P27,c(Q15617994)), (Q16229270,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2278947
relation P27
action find
entity Q16229270
relation P27
type Q15617994
[ANSWERS] are the native countriesof Arie de Zeeuw or Hesham Shehab
{'OR': [['Q2278947', 'P27', {'concept': 'Q15617994'}], ['Q16229270', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q2278947 property:P27 ?g } UNION { resource:Q16229270 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
Kingdom of the Netherlands Bahrain
Kingdom of the Netherlands and Bahrain are the native countriesof Arie de Zeeuw or Hesham Shehab
Kingdom of the Netherlands Bahrain
action filter_type
action union
action find
entity Arie de Zeeuw
relation country of citizenship
action find
entity Hesham Shehab
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Arie de Zeeuw', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hesham Shehab', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Arie_de_Zeeuw property:country_of_citizenship ?g } UNION { resource:Hesham_Shehab property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q922599 Q45149
P20
Q56061
USER
Which administrative territories did Josef Uridil or Cap R. Carden expire ?
OR((Q45149,P20,c(Q56061)), (Q922599,P20,c(Q56061)))
action filter_type
action union
action find
entity Q45149
relation P20
action find
entity Q922599
relation P20
type Q56061
{'OR': [['Q45149', 'P20', {'concept': 'Q56061'}], ['Q922599', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . { ?n property:P20 ?p . VALUES ( ?n ) { ( resource:Q922599 ) ( resource:Q45149 ) } } }
Cap R. Carden Josef Uridil
action filter_type
action union
action find
entity Josef Uridil
relation place of death
action find
entity Cap R. Carden
relation place of death
type administrative territorial entity
{'OR': [['Josef Uridil', 'place of death', {'concept': 'administrative territorial entity'}], ['Cap R. Carden', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . { ?n property:place_of_death ?p . VALUES ( ?n ) { ( resource:Cap_R._Carden ) ( resource:Josef_Uridil ) } } }
[]
administrative territorial entity
Q43668 Q1741
SYSTEM
Louisville, Vienna
Q43668 Q1741
OR((Q45149,P20,c(Q56061)), (Q922599,P20,c(Q56061)))
action filter_type
action union
action find
entity Q45149
relation P20
action find
entity Q922599
relation P20
type Q56061
Josef Uridil or Cap R. Carden expired in [ANSWERS]
{'OR': [['Q45149', 'P20', {'concept': 'Q56061'}], ['Q922599', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . { ?n property:P20 ?p . VALUES ( ?n ) { ( resource:Q922599 ) ( resource:Q45149 ) } } }
Louisville Vienna
Josef Uridil or Cap R. Carden expired in Louisville and Vienna
Louisville Vienna
action filter_type
action union
action find
entity Josef Uridil
relation place of death
action find
entity Cap R. Carden
relation place of death
type administrative territorial entity
{'OR': [['Josef Uridil', 'place of death', {'concept': 'administrative territorial entity'}], ['Cap R. Carden', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . { ?n property:place_of_death ?p . VALUES ( ?n ) { ( resource:Cap_R._Carden ) ( resource:Josef_Uridil ) } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q515 Q56061
USER
How many cities and administrative territories are partner town of that administrative territory ?
(c(Q515),P190,Q1741) (c(Q56061),P190,Q1741) (c(Q515),P190,Q43668) (c(Q56061),P190,Q43668) (c(Q515),P190,Q1741) (c(Q56061),P190,Q1741)
[{'concept': 'Q515'}, 'P190', 'Q1741'] [{'concept': 'Q56061'}, 'P190', 'Q1741'] [{'concept': 'Q515'}, 'P190', 'Q43668'] [{'concept': 'Q56061'}, 'P190', 'Q43668'] [{'concept': 'Q515'}, 'P190', 'Q1741'] [{'concept': 'Q56061'}, 'P190', 'Q1741']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q1002926 } UNION { ?y property:P190 resource:Q1002926 } UNION { ?z property:P190 resource:Q2410730 } UNION { ?y property:P190 resource:Q2410730 } UNION { ?z property:P190 resource:Q1002926 } UNION { ?y property:P190 resource:Q1002926 } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q56061 }
[{'concept': 'city'}, 'sister city', 'Vienna'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Vienna'] [{'concept': 'city'}, 'sister city', 'Louisville'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Louisville'] [{'concept': 'city'}, 'sister city', 'Vienna'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Vienna']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Vienna } UNION { ?y property:sister_city resource:Vienna } UNION { ?z property:sister_city resource:Louisville } UNION { ?y property:sister_city resource:Louisville } UNION { ?z property:sister_city resource:Vienna } UNION { ?y property:sister_city resource:Vienna } } . ?z rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity }
[]
city administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q1741
SYSTEM
Did you mean Vienna ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q1002926 } UNION { ?y property:P190 resource:Q1002926 } UNION { ?z property:P190 resource:Q2410730 } UNION { ?y property:P190 resource:Q2410730 } UNION { ?z property:P190 resource:Q1002926 } UNION { ?y property:P190 resource:Q1002926 } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q56061 }
Did you mean Vienna ?
Vienna
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Vienna } UNION { ?y property:sister_city resource:Vienna } UNION { ?z property:sister_city resource:Louisville } UNION { ?y property:sister_city resource:Louisville } UNION { ?z property:sister_city resource:Vienna } UNION { ?y property:sister_city resource:Vienna } } . ?z rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q515),P190,Q1741) (c(Q56061),P190,Q1741) (c(Q515),P190,Q43668) (c(Q56061),P190,Q43668) (c(Q515),P190,Q1741) (c(Q56061),P190,Q1741)
[{'concept': 'Q515'}, 'P190', 'Q1741'] [{'concept': 'Q56061'}, 'P190', 'Q1741'] [{'concept': 'Q515'}, 'P190', 'Q43668'] [{'concept': 'Q56061'}, 'P190', 'Q43668'] [{'concept': 'Q515'}, 'P190', 'Q1741'] [{'concept': 'Q56061'}, 'P190', 'Q1741']
[{'concept': 'city'}, 'sister city', 'Vienna'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Vienna'] [{'concept': 'city'}, 'sister city', 'Louisville'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Louisville'] [{'concept': 'city'}, 'sister city', 'Vienna'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Vienna']
[]
SYSTEM
4 cities and 11 administrative territories
Q437 Q70 Q4656 Q270 Q33935 Q14960 Q649 Q3572 Q472 Q3711 Q1780 Q1899 Q1844 Q406 Q1781
(c(Q515),P190,Q1741) (c(Q56061),P190,Q1741) (c(Q515),P190,Q43668) (c(Q56061),P190,Q43668) (c(Q515),P190,Q1741) (c(Q56061),P190,Q1741)
[ANSWER]
[{'concept': 'Q515'}, 'P190', 'Q1741'] [{'concept': 'Q56061'}, 'P190', 'Q1741'] [{'concept': 'Q515'}, 'P190', 'Q43668'] [{'concept': 'Q56061'}, 'P190', 'Q43668'] [{'concept': 'Q515'}, 'P190', 'Q1741'] [{'concept': 'Q56061'}, 'P190', 'Q1741']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q1002926 } UNION { ?y property:P190 resource:Q1002926 } UNION { ?z property:P190 resource:Q2410730 } UNION { ?y property:P190 resource:Q2410730 } UNION { ?z property:P190 resource:Q1002926 } UNION { ?y property:P190 resource:Q1002926 } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q56061 }
Ljubljana Bern Pula Warsaw Tel Aviv Brno Moscow Tunis Sofia Belgrade Bratislava Kyiv Vaduz Istanbul Budapest
4 cities and 11 administrative territories
[{'concept': 'city'}, 'sister city', 'Vienna'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Vienna'] [{'concept': 'city'}, 'sister city', 'Louisville'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Louisville'] [{'concept': 'city'}, 'sister city', 'Vienna'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Vienna']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Vienna } UNION { ?y property:sister_city resource:Vienna } UNION { ?z property:sister_city resource:Louisville } UNION { ?y property:sister_city resource:Louisville } UNION { ?z property:sister_city resource:Vienna } UNION { ?y property:sister_city resource:Vienna } } . ?z rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity }
[]