Simple Question (Direct)
Simple Question
Q6391896
P102
Q7210356
USER
Which party is Kent Shelhamer affiliated with ?
(Q6391896,P102,c(Q7210356))
action filter_type
action find
entity Q6391896
relation P102
type Q7210356
['Q6391896', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q6391896 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Kent Shelhamer
action filter_type
action find
entity Kent Shelhamer
relation member of political party
type political organization
['Kent Shelhamer', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Kent_Shelhamer property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q6391896,P102,c(Q7210356))
action filter_type
action find
entity Q6391896
relation P102
type Q7210356
Kent Shelhamer is affiliated with [ANSWER]
['Q6391896', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q6391896 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Democratic Party
Kent Shelhamer is affiliated with Democratic Party
Democratic Party
action filter_type
action find
entity Kent Shelhamer
relation member of political party
type political organization
['Kent Shelhamer', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Kent_Shelhamer property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6391896
P106
Q12737077
USER
Which occupation has that person as his/her 's career ?
(Q29552,P106,c(Q12737077))
action filter_type
action find
entity Q6391896
relation P106
type Q12737077
['Q29552', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q6391896 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Kent Shelhamer
action filter_type
action find
entity Kent Shelhamer
relation occupation
type occupation
['Democratic Party', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Kent_Shelhamer property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q29552,P106,c(Q12737077))
action filter_type
action find
entity Q6391896
relation P106
type Q12737077
A [ANSWER] has that person as his/her 's career
['Q29552', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q6391896 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
politician
A politician has that person as his/her 's career
politician
action filter_type
action find
entity Kent Shelhamer
relation occupation
type occupation
['Democratic Party', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Kent_Shelhamer property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q82955 Q26242228
P106
Q502895
USER
Does Henry Meynell have that occupation as his/her means of employment ?
(Q26242228,P106,Q82955)
action is_in
entity Q82955
action find
entity Q26242228
relation P106
['Q26242228', 'P106', 'Q82955']
ASK WHERE { resource:Q26242228 property:P106 resource:Q82955 }
politician Henry Meynell
action is_in
entity politician
action find
entity Henry Meynell
relation occupation
['Henry Meynell', 'occupation', 'politician']
ASK WHERE { resource:Henry_Meynell property:occupation resource:politician }
[]
common name
SYSTEM
YES
(Q26242228,P106,Q82955)
action is_in
entity Q82955
action find
entity Q26242228
relation P106
[ANSWER]
['Q26242228', 'P106', 'Q82955']
ASK WHERE { resource:Q26242228 property:P106 resource:Q82955 }
Yes
action is_in
entity politician
action find
entity Henry Meynell
relation occupation
['Henry Meynell', 'occupation', 'politician']
ASK WHERE { resource:Henry_Meynell property:occupation resource:politician }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q6391896 Q30 Q70981
P27
Q15617994
USER
Is Kent Shelhamer a civilian of United States of America and Königshain-Wiederau ?
(Q6391896,P27,Q30) (Q6391896,P27,Q70981)
action is_in
entity Q6391896
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q70981
relation P27
['Q6391896', 'P27', 'Q30'] ['Q6391896', 'P27', 'Q70981']
ASK WHERE { resource:Q6391896 property:P27 resource:Q30 . resource:Q6391896 property:P27 resource:Q70981 }
Kent Shelhamer United States of America Königshain-Wiederau
action is_in
entity Kent Shelhamer
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Königshain-Wiederau
relation country of citizenship
['Kent Shelhamer', 'country of citizenship', 'United States of America'] ['Kent Shelhamer', 'country of citizenship', 'Königshain-Wiederau']
ASK WHERE { resource:Kent_Shelhamer property:country_of_citizenship resource:United_States_of_America . resource:Kent_Shelhamer property:country_of_citizenship resource:Königshain-Wiederau }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q6391896,P27,Q30) (Q6391896,P27,Q70981)
action is_in
entity Q6391896
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q70981
relation P27
[ANSWER]
['Q6391896', 'P27', 'Q30'] ['Q6391896', 'P27', 'Q70981']
ASK WHERE { resource:Q6391896 property:P27 resource:Q30 . resource:Q6391896 property:P27 resource:Q70981 }
YES and NO respectively
action is_in
entity Kent Shelhamer
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Königshain-Wiederau
relation country of citizenship
['Kent Shelhamer', 'country of citizenship', 'United States of America'] ['Kent Shelhamer', 'country of citizenship', 'Königshain-Wiederau']
ASK WHERE { resource:Kent_Shelhamer property:country_of_citizenship resource:United_States_of_America . resource:Kent_Shelhamer property:country_of_citizenship resource:Königshain-Wiederau }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6391896
P21
Q290
USER
Which sex does that person possess ?
action filter_type
action find
entity Q6391896
relation P21
type Q290
SELECT DISTINCT ?l WHERE { resource:Q6391896 property:P21 ?l . ?l rdf:type ontology:Q290 }
Kent Shelhamer
action filter_type
action find
entity Kent Shelhamer
relation gender
type sex
SELECT DISTINCT ?l WHERE { resource:Kent_Shelhamer property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
action filter_type
action find
entity Q6391896
relation P21
type Q290
That person possesses a [ANSWER]
SELECT DISTINCT ?l WHERE { resource:Q6391896 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity Kent Shelhamer
relation gender
type sex
SELECT DISTINCT ?l WHERE { resource:Kent_Shelhamer property:gender ?l . ?l rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q13723646
P21
Q502895
USER
Does Hein Kaars Sijpesteijn have the gender as that sex ?
(Q13723646,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q13723646
relation P21
['Q13723646', 'P21', 'Q6581097']
ASK WHERE { resource:Q13723646 property:P21 resource:Q6581097 }
male Hein Kaars Sijpesteijn
action is_in
entity male
action find
entity Hein Kaars Sijpesteijn
relation gender
['Hein Kaars Sijpesteijn', 'gender', 'male']
ASK WHERE { resource:Hein_Kaars_Sijpesteijn property:gender resource:male }
[]
common name
SYSTEM
YES
(Q13723646,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q13723646
relation P21
[ANSWER]
['Q13723646', 'P21', 'Q6581097']
ASK WHERE { resource:Q13723646 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Hein Kaars Sijpesteijn
relation gender
['Hein Kaars Sijpesteijn', 'gender', 'male']
ASK WHERE { resource:Hein_Kaars_Sijpesteijn property:gender resource:male }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4976573 Q6391896
P27
Q15617994
USER
Which administrative territories are Kent Shelhamer or Hendrik Jacob van Doorn van Westcapelle a civilian of ?
OR((Q6391896,P27,c(Q15617994)), (Q4976573,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6391896
relation P27
action find
entity Q4976573
relation P27
type Q15617994
{'OR': [['Q6391896', 'P27', {'concept': 'Q15617994'}], ['Q4976573', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?n ) { ( resource:Q6391896 ) ( resource:Q4976573 ) } . ?n property:P27 ?c } . ?c rdf:type ontology:Q15617994 }
Hendrik Jacob van Doorn van Westcapelle Kent Shelhamer
action filter_type
action union
action find
entity Kent Shelhamer
relation country of citizenship
action find
entity Hendrik Jacob van Doorn van Westcapelle
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kent Shelhamer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hendrik Jacob van Doorn van Westcapelle', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?n ) { ( resource:Kent_Shelhamer ) ( resource:Hendrik_Jacob_van_Doorn_van_Westcapelle ) } . ?n property:country_of_citizenship ?c } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q30 Q55
SYSTEM
Belgium, United States of America, Netherlands
Q31 Q30 Q55
OR((Q6391896,P27,c(Q15617994)), (Q4976573,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6391896
relation P27
action find
entity Q4976573
relation P27
type Q15617994
[ANSWERS] are Kent Shelhamer or Hendrik Jacob van Doorn van Westcapelle a civilian of
{'OR': [['Q6391896', 'P27', {'concept': 'Q15617994'}], ['Q4976573', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?n ) { ( resource:Q6391896 ) ( resource:Q4976573 ) } . ?n property:P27 ?c } . ?c rdf:type ontology:Q15617994 }
Belgium United States of America Netherlands
Belgium, United States of America and Netherlands are Kent Shelhamer or Hendrik Jacob van Doorn van Westcapelle a civilian of
Belgium United States of America Netherlands
action filter_type
action union
action find
entity Kent Shelhamer
relation country of citizenship
action find
entity Hendrik Jacob van Doorn van Westcapelle
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kent Shelhamer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hendrik Jacob van Doorn van Westcapelle', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?n ) { ( resource:Kent_Shelhamer ) ( resource:Hendrik_Jacob_van_Doorn_van_Westcapelle ) } . ?n property:country_of_citizenship ?c } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P840
Q15617994 Q838948 Q2342494
USER
Which administrative territories are min number of works of art and collectables set in ?
(c(Q838948)|c(Q2342494),P840,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?f WHERE { VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?b rdf:type ?e } GROUP BY ?f } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) ?s WHERE { { ?i property:P840 ?s . ?i rdf:type ontology:Q838948 . ?s rdf:type ontology:Q15617994 } UNION { ?s rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q2342494 . ?i property:P840 ?s } } GROUP BY ?s } . FILTER ( ?v = ?z ) }
action argmin
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?f WHERE { VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?b rdf:type ?e } GROUP BY ?f } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) ?s WHERE { { ?i property:narrative_location ?s . ?i rdf:type ontology:work_of_art . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:collectable . ?i property:narrative_location ?s } } GROUP BY ?s } . FILTER ( ?v = ?z ) }
[]
designation for an administrative territorial entity work of art collectable
Q32 Q1011 Q948
SYSTEM
Luxembourg, Cape Verde, Tunisia
Q3278 Q18021 Q1460 Q403 Q165040 Q12515 Q32 Q928 Q58477 Q769680 Q12538 Q233 Q1860611 Q1029 Q225 Q163966 Q12700 Q3207 Q159689 Q114 Q833 Q948 Q817 Q1016 Q1011 Q12545 Q53216
(c(Q838948)|c(Q2342494),P840,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
Min number of works of art and collectables are set in [ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?f WHERE { VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?b rdf:type ?e } GROUP BY ?f } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) ?s WHERE { { ?i property:P840 ?s . ?i rdf:type ontology:Q838948 . ?s rdf:type ontology:Q15617994 } UNION { ?s rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q2342494 . ?i property:P840 ?s } } GROUP BY ?s } . FILTER ( ?v = ?z ) }
Charente-Maritime Biella Sicily Serbia Duchy of Parma Gard Luxembourg Philippines Capua Bornholm Haute-Garonne Malta Viby Mozambique Bosnia and Herzegovina Mitte Hautes-Pyrénées Aude Bomarzo Kenya Malaysia Tunisia Kuwait Libya Cape Verde Hérault Aquileia
Min number of works of art and collectables are set in Luxembourg, Cape Verde and Tunisia
Luxembourg Cape Verde Tunisia
action argmin
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?f WHERE { VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?b rdf:type ?e } GROUP BY ?f } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) ?s WHERE { { ?i property:narrative_location ?s . ?i rdf:type ontology:work_of_art . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:collectable . ?i property:narrative_location ?s } } GROUP BY ?s } . FILTER ( ?v = ?z ) }
[]