Simple Question (Direct)
Simple Question
Q1669299
P39
Q12737077
USER
Which occupations were the positions for which Werner Freers were appointed ?
(Q1669299,P39,c(Q12737077))
action filter_type
action find
entity Q1669299
relation P39
type Q12737077
['Q1669299', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q12737077 . resource:Q1669299 property:P39 ?b }
Werner Freers
action filter_type
action find
entity Werner Freers
relation position held
type occupation
['Werner Freers', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:occupation . resource:Werner_Freers property:position_held ?b }
[]
occupation
Q881162 Q707492
SYSTEM
Inspector of the Army, chief of staff
Q881162 Q707492
(Q1669299,P39,c(Q12737077))
action filter_type
action find
entity Q1669299
relation P39
type Q12737077
[ANSWERS] were the positions for which Werner Freers were appointed
['Q1669299', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q12737077 . resource:Q1669299 property:P39 ?b }
Inspector of the Army chief of staff
Inspector of the Army and chief of staff were the positions for which Werner Freers were appointed
Inspector of the Army chief of staff
action filter_type
action find
entity Werner Freers
relation position held
type occupation
['Werner Freers', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:occupation . resource:Werner_Freers property:position_held ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1669299
P27
Q1048835
USER
Which political territory is Werner Freers an inhabitant of ?
(Q1669299,P27,c(Q1048835))
action filter_type
action find
entity Q1669299
relation P27
type Q1048835
['Q1669299', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q1669299 property:P27 ?z . ?z rdf:type ontology:Q1048835 }
Werner Freers
action filter_type
action find
entity Werner Freers
relation country of citizenship
type political territorial entity
['Werner Freers', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Werner_Freers property:country_of_citizenship ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1669299,P27,c(Q1048835))
action filter_type
action find
entity Q1669299
relation P27
type Q1048835
The [ANSWER] is Werner Freers an inhabitant of
['Q1669299', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q1669299 property:P27 ?z . ?z rdf:type ontology:Q1048835 }
Germany
The Germany is Werner Freers an inhabitant of
Germany
action filter_type
action find
entity Werner Freers
relation country of citizenship
type political territorial entity
['Werner Freers', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Werner_Freers property:country_of_citizenship ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1416382
Q1048835
USER
And also tell me about Horst Tietz?
(Q1416382,P27,c(Q1048835))
action filter_type
action find
entity Q1416382
relation P27
type Q1048835
['Q1416382', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q1416382 property:P27 ?k . ?k rdf:type ontology:Q1048835 }
Horst Tietz
action filter_type
action find
entity Horst Tietz
relation country of citizenship
type political territorial entity
['Horst Tietz', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Horst_Tietz property:country_of_citizenship ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1416382,P27,c(Q1048835))
action filter_type
action find
entity Q1416382
relation P27
type Q1048835
[ANSWER]
['Q1416382', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q1416382 property:P27 ?k . ?k rdf:type ontology:Q1048835 }
Germany
Germany
action filter_type
action find
entity Horst Tietz
relation country of citizenship
type political territorial entity
['Horst Tietz', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Horst_Tietz property:country_of_citizenship ?k . ?k rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q183
P495
Q334453 Q131257
USER
How many divisions and intellectual properties are Germany a country of origin of ?
(c(Q334453),P495,Q183) (c(Q131257),P495,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P495
type Q334453
action filter_type
action find_reverse
entity Q183
relation P495
type Q131257
[{'concept': 'Q334453'}, 'P495', 'Q183'] [{'concept': 'Q131257'}, 'P495', 'Q183']
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { ?n property:P495 resource:Q183 . ?n rdf:type ontology:Q334453 } UNION { ?n property:P495 resource:Q183 . ?n rdf:type ontology:Q131257 } }
Germany
action count
action union
action filter_type
action find_reverse
entity Germany
relation country of origin
type division
action filter_type
action find_reverse
entity Germany
relation country of origin
type intellectual property
[{'concept': 'division'}, 'country of origin', 'Germany'] [{'concept': 'intellectual property'}, 'country of origin', 'Germany']
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { ?n property:country_of_origin resource:Germany . ?n rdf:type ontology:division } UNION { ?n property:country_of_origin resource:Germany . ?n rdf:type ontology:intellectual_property } }
[]
division intellectual property
SYSTEM
3 divisions and 5 intellectual properties
Q2740122 Q1958705 Q383742 Q1577930 Q2595405 Q2537051 Q206978 Q4960557
(c(Q334453),P495,Q183) (c(Q131257),P495,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P495
type Q334453
action filter_type
action find_reverse
entity Q183
relation P495
type Q131257
[ANSWER]
[{'concept': 'Q334453'}, 'P495', 'Q183'] [{'concept': 'Q131257'}, 'P495', 'Q183']
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { ?n property:P495 resource:Q183 . ?n rdf:type ontology:Q334453 } UNION { ?n property:P495 resource:Q183 . ?n rdf:type ontology:Q131257 } }
lebkuchen Mülleimer Records Afri-Cola Morbid Records Wurzelpeter WEA Records Sprite Bremer Klaben
3 divisions and 5 intellectual properties
action count
action union
action filter_type
action find_reverse
entity Germany
relation country of origin
type division
action filter_type
action find_reverse
entity Germany
relation country of origin
type intellectual property
[{'concept': 'division'}, 'country of origin', 'Germany'] [{'concept': 'intellectual property'}, 'country of origin', 'Germany']
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { ?n property:country_of_origin resource:Germany . ?n rdf:type ontology:division } UNION { ?n property:country_of_origin resource:Germany . ?n rdf:type ontology:intellectual_property } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q361261 Q1669299
P166
Q618779
USER
Which awards were received by Werner Freers or Prince Bertil, Duke of Halland ?
OR((Q1669299,P166,c(Q618779)), (Q361261,P166,c(Q618779)))
action filter_type
action union
action find
entity Q1669299
relation P166
action find
entity Q361261
relation P166
type Q618779
{'OR': [['Q1669299', 'P166', {'concept': 'Q618779'}], ['Q361261', 'P166', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q618779 . { { resource:Q1669299 property:P166 ?p } UNION { resource:Q361261 property:P166 ?p } } }
Prince Bertil, Duke of Halland Werner Freers
action filter_type
action union
action find
entity Werner Freers
relation award received
action find
entity Prince Bertil, Duke of Halland
relation award received
type award
{'OR': [['Werner Freers', 'award received', {'concept': 'award'}], ['Prince Bertil, Duke of Halland', 'award received', {'concept': 'award'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:award . { { resource:Werner_Freers property:award_received ?p } UNION { resource:Prince_Bertil,_Duke_of_Halland property:award_received ?p } } }
[]
award
Q94044 Q840941 Q10905380 Q1331130 Q60476 Q2571514 Q14539974
SYSTEM
Decoration of Honour for Services to the Republic of Austria, Order of Christ, Cross of the Order of Merit of the Federal Republic of Germany, Royal Order of the Seraphim, Order of the Cross of Terra Mariana, Wilhelm Leuschner Medal, Knight Grand Cross of the Order of Merit of the Italian Republic
Q94044 Q840941 Q10905380 Q1331130 Q60476 Q2571514 Q14539974
OR((Q1669299,P166,c(Q618779)), (Q361261,P166,c(Q618779)))
action filter_type
action union
action find
entity Q1669299
relation P166
action find
entity Q361261
relation P166
type Q618779
[ANSWERS] were received by Werner Freers or Prince Bertil, Duke of Halland
{'OR': [['Q1669299', 'P166', {'concept': 'Q618779'}], ['Q361261', 'P166', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q618779 . { { resource:Q1669299 property:P166 ?p } UNION { resource:Q361261 property:P166 ?p } } }
Decoration of Honour for Services to the Republic of Austria Order of Christ Cross of the Order of Merit of the Federal Republic of Germany Royal Order of the Seraphim Order of the Cross of Terra Mariana Wilhelm Leuschner Medal Knight Grand Cross of the Order of Merit of the Italian Republic
Decoration of Honour for Services to the Republic of Austria, Order of Christ, Cross of the Order of Merit of the Federal Republic of Germany, Royal Order of the Seraphim, Order of the Cross of Terra Mariana, Wilhelm Leuschner Medal and Knight Grand Cross of the Order of Merit of the Italian Republic were received by Werner Freers or Prince Bertil, Duke of Halland
Decoration of Honour for Services to the Republic of Austria Order of Christ Cross of the Order of Merit of the Federal Republic of Germany Royal Order of the Seraphim Order of the Cross of Terra Mariana Wilhelm Leuschner Medal Knight Grand Cross of the Order of Merit of the Italian Republic
action filter_type
action union
action find
entity Werner Freers
relation award received
action find
entity Prince Bertil, Duke of Halland
relation award received
type award
{'OR': [['Werner Freers', 'award received', {'concept': 'award'}], ['Prince Bertil, Duke of Halland', 'award received', {'concept': 'award'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:award . { { resource:Werner_Freers property:award_received ?p } UNION { resource:Prince_Bertil,_Duke_of_Halland property:award_received ?p } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1331130
P17
Q15617994
USER
Which administrative territory does Royal Order of the Seraphim belong to ?
(Q1331130,P17,c(Q15617994))
action filter_type
action find
entity Q1331130
relation P17
type Q15617994
['Q1331130', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q1331130 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Royal Order of the Seraphim
action filter_type
action find
entity Royal Order of the Seraphim
relation country
type designation for an administrative territorial entity
['Royal Order of the Seraphim', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Royal_Order_of_the_Seraphim property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q1331130,P17,c(Q15617994))
action filter_type
action find
entity Q1331130
relation P17
type Q15617994
Royal Order of the Seraphim belongs to [ANSWER]
['Q1331130', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q1331130 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Sweden
Royal Order of the Seraphim belongs to Sweden
Sweden
action filter_type
action find
entity Royal Order of the Seraphim
relation country
type designation for an administrative territorial entity
['Royal Order of the Seraphim', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Royal_Order_of_the_Seraphim property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q34 Q20 Q33
P47
Q15617994
USER
Is that administrative territory next to the border of Norway and Finland ?
(Q34,P47,Q20) (Q34,P47,Q33)
action is_in
entity Q34
action intersection
action find_reverse
entity Q20
relation P47
action find_reverse
entity Q33
relation P47
['Q34', 'P47', 'Q20'] ['Q34', 'P47', 'Q33']
ASK WHERE { resource:Q34 property:P47 resource:Q20 . resource:Q34 property:P47 resource:Q33 }
Sweden Norway Finland
action is_in
entity Sweden
action intersection
action find_reverse
entity Norway
relation shares border with
action find_reverse
entity Finland
relation shares border with
['Sweden', 'shares border with', 'Norway'] ['Sweden', 'shares border with', 'Finland']
ASK WHERE { resource:Sweden property:shares_border_with resource:Norway . resource:Sweden property:shares_border_with resource:Finland }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q34,P47,Q20) (Q34,P47,Q33)
action is_in
entity Q34
action intersection
action find_reverse
entity Q20
relation P47
action find_reverse
entity Q33
relation P47
[ANSWER]
['Q34', 'P47', 'Q20'] ['Q34', 'P47', 'Q33']
ASK WHERE { resource:Q34 property:P47 resource:Q20 . resource:Q34 property:P47 resource:Q33 }
Yes
action is_in
entity Sweden
action intersection
action find_reverse
entity Norway
relation shares border with
action find_reverse
entity Finland
relation shares border with
['Sweden', 'shares border with', 'Norway'] ['Sweden', 'shares border with', 'Finland']
ASK WHERE { resource:Sweden property:shares_border_with resource:Norway . resource:Sweden property:shares_border_with resource:Finland }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic associations with atmost 22 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 22
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?m ) WHERE { ?d property:P530 ?k . ?d rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?m <= 22 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 22
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?m ) WHERE { ?d property:diplomatic_relation ?k . ?d rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?m <= 22 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 22
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?m ) WHERE { ?d property:P530 ?k . ?d rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?m <= 22 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
10
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 22
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?m ) WHERE { ?d property:diplomatic_relation ?k . ?d rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?m <= 22 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q34 Q145
P495
Q838948
USER
How many works of art have Sweden and United Kingdom as their place of origin ?
(c(Q838948),P495,Q34) (c(Q838948),P495,Q145)
action count
action intersection
action filter_type
action find_reverse
entity Q34
relation P495
type Q838948
action filter_type
action find_reverse
entity Q145
relation P495
type Q838948
[{'concept': 'Q838948'}, 'P495', 'Q34'] [{'concept': 'Q838948'}, 'P495', 'Q145']
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:P495 resource:Q34 . ?x rdf:type ontology:Q838948 . ?x rdf:type ontology:Q838948 . ?x property:P495 resource:Q145 }
Sweden United Kingdom
action count
action intersection
action filter_type
action find_reverse
entity Sweden
relation country of origin
type work of art
action filter_type
action find_reverse
entity United Kingdom
relation country of origin
type work of art
[{'concept': 'work of art'}, 'country of origin', 'Sweden'] [{'concept': 'work of art'}, 'country of origin', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:country_of_origin resource:Sweden . ?x rdf:type ontology:work_of_art . ?x rdf:type ontology:work_of_art . ?x property:country_of_origin resource:United_Kingdom }
[]
work of art
SYSTEM
23
Q7859064 Q110365 Q126372 Q281988 Q841274 Q570125 Q1141731 Q1073856 Q7759020 Q287708 Q327681 Q151594 Q2735941 Q21450450 Q1933953 Q1768754 Q5915636 Q23034797 Q1759619 Q2408071 Q474093 Q336835 Q1825585
(c(Q838948),P495,Q34) (c(Q838948),P495,Q145)
action count
action intersection
action filter_type
action find_reverse
entity Q34
relation P495
type Q838948
action filter_type
action find_reverse
entity Q145
relation P495
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P495', 'Q34'] [{'concept': 'Q838948'}, 'P495', 'Q145']
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:P495 resource:Q34 . ?x rdf:type ontology:Q838948 . ?x rdf:type ontology:Q838948 . ?x property:P495 resource:Q145 }
Two Living, One Dead Dancer in the Dark The Girl The Sacrifice The Woman in Black I Hired a Contract Killer Manderlay Strings The Queen of Sheba's Pearls Searching for Sugar Man Dogville Mask of Murder Videocracy Creditors Perfect Sense Aberdeen House of the Tiger King The Promise Kon-Tiki Montenegro The Girl with the Dragon Tattoo The Adventures of Pinocchio Diana
23
action count
action intersection
action filter_type
action find_reverse
entity Sweden
relation country of origin
type work of art
action filter_type
action find_reverse
entity United Kingdom
relation country of origin
type work of art
[{'concept': 'work of art'}, 'country of origin', 'Sweden'] [{'concept': 'work of art'}, 'country of origin', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x property:country_of_origin resource:Sweden . ?x rdf:type ontology:work_of_art . ?x rdf:type ontology:work_of_art . ?x property:country_of_origin resource:United_Kingdom }
[]