Simple Question (Direct)
Simple Question
Q761992
P641
Q349
USER
What was the sport that Walter Zastrau was a part of ?
(Q761992,P641,c(Q349))
action filter_type
action find
entity Q761992
relation P641
type Q349
['Q761992', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q349 . resource:Q761992 property:P641 ?m }
Walter Zastrau
action filter_type
action find
entity Walter Zastrau
relation sport
type sport
['Walter Zastrau', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sport . resource:Walter_Zastrau property:sport ?m }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q761992,P641,c(Q349))
action filter_type
action find
entity Q761992
relation P641
type Q349
The sport that Walter Zastrau was a part of was the [ANSWER]
['Q761992', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q349 . resource:Q761992 property:P641 ?m }
association football
The sport that Walter Zastrau was a part of was the association football
association football
action filter_type
action find
entity Walter Zastrau
relation sport
type sport
['Walter Zastrau', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sport . resource:Walter_Zastrau property:sport ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q761992
P106
Q12737077
USER
What is the profession of that person ?
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q761992
relation P106
type Q12737077
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q761992 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Walter Zastrau
action filter_type
action find
entity Walter Zastrau
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Walter_Zastrau property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q761992
relation P106
type Q12737077
The profession of that person is an [ANSWER]
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q761992 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
association football player
The profession of that person is an association football player
association football player
action filter_type
action find
entity Walter Zastrau
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Walter_Zastrau property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q701632 Q1752346 Q12737077
USER
How many occupations were appointed by approximately 1 municipal councils or assemblies ?
(c(Q12737077),P748,c(Q701632)|c(Q1752346))
action count
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q701632'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?q ) WHERE { VALUES ( ?d ) { ( ontology:Q701632 ) ( ontology:Q1752346 ) } . ?b rdf:type ?d } GROUP BY ?a } . FILTER ( ?q = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action find_tuple_counts
relation appointed by
type occupation
type assembly
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'municipal council'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?q ) WHERE { VALUES ( ?d ) { ( ontology:municipal_council ) ( ontology:assembly ) } . ?b rdf:type ?d } GROUP BY ?a } . FILTER ( ?q = 1 ) }
[]
municipal council assembly occupation
SYSTEM
27
Q20748656 Q20890913 Q21371106 Q21013169 Q15305714 Q20872382 Q20872273 Q842386 Q19056310 Q890030 Q20891385 Q796593 Q21384866 Q20194364 Q21383592 Q7574264 Q20859388 Q20867550 Q20872296 Q3409203 Q327948 Q1370482 Q20872339 Q26209358 Q20992515 Q26721218 Q628102
(c(Q12737077),P748,c(Q701632)|c(Q1752346))
action count
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
value 1
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q701632'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?q ) WHERE { VALUES ( ?d ) { ( ontology:Q701632 ) ( ontology:Q1752346 ) } . ?b rdf:type ?d } GROUP BY ?a } . FILTER ( ?q = 1 ) }
municipal executive of Zoetermeer municipal executive of Eindhoven municipal executive of Amersfoort municipal executive of The Hague Prime Minister of Libya municipal executive of Coevorden municipal executive of Boxmeer Prime Minister of Russia President of Botswana State President of South Africa municipal executive of Deventer President of Malta municipal executive of Rotterdam municipal executive of Amsterdam municipal executive of Haarlem Speaker of the Hellenic Parliament municipal executive of Mierlo municipal executive of Gorinchem municipal executive of Almere President of Greece President of Israel President of Cuba municipal executive of Woerden municipal executive of Warffum municipal executive of Utrecht municipal executive of Almere President of Nauru
27
action count
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action find_tuple_counts
relation appointed by
type occupation
type assembly
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'municipal council'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?q ) WHERE { VALUES ( ?d ) { ( ontology:municipal_council ) ( ontology:assembly ) } . ?b rdf:type ?d } GROUP BY ?a } . FILTER ( ?q = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2632905 Q761992
P27 P495
Q1048835
USER
Which political territories are Walter Zastrau an inhabitant of or are the origin of The Five Obstructions ?
OR((Q761992,P27,c(Q1048835)), (Q2632905,P495,c(Q1048835)))
action filter_type
action union
action find
entity Q761992
relation P27
action find
entity Q2632905
relation P495
type Q1048835
{'OR': [['Q761992', 'P27', {'concept': 'Q1048835'}], ['Q2632905', 'P495', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q761992 property:P27 ?h } UNION { resource:Q2632905 property:P495 ?h } } . ?h rdf:type ontology:Q1048835 }
The Five Obstructions Walter Zastrau
action filter_type
action union
action find
entity Walter Zastrau
relation country of citizenship
action find
entity The Five Obstructions
relation country of origin
type political territorial entity
{'OR': [['Walter Zastrau', 'country of citizenship', {'concept': 'political territorial entity'}], ['The Five Obstructions', 'country of origin', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Walter_Zastrau property:country_of_citizenship ?h } UNION { resource:The_Five_Obstructions property:country_of_origin ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q35
SYSTEM
Germany, Denmark
Q183 Q35
OR((Q761992,P27,c(Q1048835)), (Q2632905,P495,c(Q1048835)))
action filter_type
action union
action find
entity Q761992
relation P27
action find
entity Q2632905
relation P495
type Q1048835
[ANSWERS] are Walter Zastrau an inhabitant of or are the origin of The Five Obstructions
{'OR': [['Q761992', 'P27', {'concept': 'Q1048835'}], ['Q2632905', 'P495', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q761992 property:P27 ?h } UNION { resource:Q2632905 property:P495 ?h } } . ?h rdf:type ontology:Q1048835 }
Germany Denmark
Germany and Denmark are Walter Zastrau an inhabitant of or are the origin of The Five Obstructions
Germany Denmark
action filter_type
action union
action find
entity Walter Zastrau
relation country of citizenship
action find
entity The Five Obstructions
relation country of origin
type political territorial entity
{'OR': [['Walter Zastrau', 'country of citizenship', {'concept': 'political territorial entity'}], ['The Five Obstructions', 'country of origin', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Walter_Zastrau property:country_of_citizenship ?h } UNION { resource:The_Five_Obstructions property:country_of_origin ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P127
Q43229 Q3947
USER
How many organizations and houses are owned by that political territory ?
(c(Q43229),P127,Q183) (c(Q3947),P127,Q183) (c(Q43229),P127,Q183) (c(Q3947),P127,Q183) (c(Q43229),P127,Q35) (c(Q3947),P127,Q35)
[{'concept': 'Q43229'}, 'P127', 'Q183'] [{'concept': 'Q3947'}, 'P127', 'Q183'] [{'concept': 'Q43229'}, 'P127', 'Q183'] [{'concept': 'Q3947'}, 'P127', 'Q183'] [{'concept': 'Q43229'}, 'P127', 'Q35'] [{'concept': 'Q3947'}, 'P127', 'Q35']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P127 resource:Q423030 } UNION { ?y property:P127 resource:Q423030 } UNION { ?z property:P127 resource:Q423030 } UNION { ?y property:P127 resource:Q423030 } UNION { ?z property:P127 resource:Q22286761 } UNION { ?y property:P127 resource:Q22286761 } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q20019676 }
[{'concept': 'organization'}, 'owned by', 'Germany'] [{'concept': 'house'}, 'owned by', 'Germany'] [{'concept': 'organization'}, 'owned by', 'Germany'] [{'concept': 'house'}, 'owned by', 'Germany'] [{'concept': 'organization'}, 'owned by', 'Denmark'] [{'concept': 'house'}, 'owned by', 'Denmark']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:owned_by resource:Germany } UNION { ?y property:owned_by resource:Germany } UNION { ?z property:owned_by resource:Germany } UNION { ?y property:owned_by resource:Germany } UNION { ?z property:owned_by resource:Denmark } UNION { ?y property:owned_by resource:Denmark } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:house }
[]
organization house
Quantitative|Count|Mult. entity type|Clarification
Q35
SYSTEM
Did you mean Denmark ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P127 resource:Q423030 } UNION { ?y property:P127 resource:Q423030 } UNION { ?z property:P127 resource:Q423030 } UNION { ?y property:P127 resource:Q423030 } UNION { ?z property:P127 resource:Q22286761 } UNION { ?y property:P127 resource:Q22286761 } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q20019676 }
Did you mean Denmark ?
Denmark
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:owned_by resource:Germany } UNION { ?y property:owned_by resource:Germany } UNION { ?z property:owned_by resource:Germany } UNION { ?y property:owned_by resource:Germany } UNION { ?z property:owned_by resource:Denmark } UNION { ?y property:owned_by resource:Denmark } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:house }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Germany. Could you tell me the answer for that?
(c(Q43229),P127,Q183) (c(Q3947),P127,Q183) (c(Q43229),P127,Q183) (c(Q3947),P127,Q183) (c(Q43229),P127,Q35) (c(Q3947),P127,Q35)
Q183
[{'concept': 'Q43229'}, 'P127', 'Q183'] [{'concept': 'Q3947'}, 'P127', 'Q183'] [{'concept': 'Q43229'}, 'P127', 'Q183'] [{'concept': 'Q3947'}, 'P127', 'Q183'] [{'concept': 'Q43229'}, 'P127', 'Q35'] [{'concept': 'Q3947'}, 'P127', 'Q35']
[{'concept': 'organization'}, 'owned by', 'Germany'] [{'concept': 'house'}, 'owned by', 'Germany'] [{'concept': 'organization'}, 'owned by', 'Germany'] [{'concept': 'house'}, 'owned by', 'Germany'] [{'concept': 'organization'}, 'owned by', 'Denmark'] [{'concept': 'house'}, 'owned by', 'Denmark']
[]
SYSTEM
3 organizations and 4 houses
Q966399 Q317601 Q1243439 Q15118459 Q6430062 Q1243445 Q1202537
(c(Q43229),P127,Q183) (c(Q3947),P127,Q183) (c(Q43229),P127,Q183) (c(Q3947),P127,Q183) (c(Q43229),P127,Q35) (c(Q3947),P127,Q35)
[ANSWER]
[{'concept': 'Q43229'}, 'P127', 'Q183'] [{'concept': 'Q3947'}, 'P127', 'Q183'] [{'concept': 'Q43229'}, 'P127', 'Q183'] [{'concept': 'Q3947'}, 'P127', 'Q183'] [{'concept': 'Q43229'}, 'P127', 'Q35'] [{'concept': 'Q3947'}, 'P127', 'Q35']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P127 resource:Q423030 } UNION { ?y property:P127 resource:Q423030 } UNION { ?z property:P127 resource:Q423030 } UNION { ?y property:P127 resource:Q423030 } UNION { ?z property:P127 resource:Q22286761 } UNION { ?y property:P127 resource:Q22286761 } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q20019676 }
Hôtel Beauharnais Bundesstiftung zur Aufarbeitung der SED-Diktatur Kaiser-Friedrich-Straße 8/10 Lindenallee 70 Viventura Tempelstraße 1/3 German Finance Agency
3 organizations and 4 houses
[{'concept': 'organization'}, 'owned by', 'Germany'] [{'concept': 'house'}, 'owned by', 'Germany'] [{'concept': 'organization'}, 'owned by', 'Germany'] [{'concept': 'house'}, 'owned by', 'Germany'] [{'concept': 'organization'}, 'owned by', 'Denmark'] [{'concept': 'house'}, 'owned by', 'Denmark']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:owned_by resource:Germany } UNION { ?y property:owned_by resource:Germany } UNION { ?z property:owned_by resource:Germany } UNION { ?y property:owned_by resource:Germany } UNION { ?z property:owned_by resource:Denmark } UNION { ?y property:owned_by resource:Denmark } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:house }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35
P1532
Q502895
USER
Who plays for Denmark ?
(c(Q502895),P1532,Q35)
action filter_type
action find_reverse
entity Q35
relation P1532
type Q502895
[{'concept': 'Q502895'}, 'P1532', 'Q35']
SELECT DISTINCT ?m WHERE { ?m property:P1532 resource:Q35 . ?m rdf:type ontology:Q502895 }
Denmark
action filter_type
action find_reverse
entity Denmark
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Denmark']
SELECT DISTINCT ?m WHERE { ?m property:country_for_sport resource:Denmark . ?m rdf:type ontology:common_name }
[]
common name
Q12301578
SYSTEM
Andreas Martinsen
Q12301578
(c(Q502895),P1532,Q35)
action filter_type
action find_reverse
entity Q35
relation P1532
type Q502895
[ANSWER] plays for Denmark
[{'concept': 'Q502895'}, 'P1532', 'Q35']
SELECT DISTINCT ?m WHERE { ?m property:P1532 resource:Q35 . ?m rdf:type ontology:Q502895 }
Andreas Martinsen
Andreas Martinsen plays for Denmark
Andreas Martinsen
action filter_type
action find_reverse
entity Denmark
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Denmark']
SELECT DISTINCT ?m WHERE { ?m property:country_for_sport resource:Denmark . ?m rdf:type ontology:common_name }
[]