Simple Question (Direct)
Simple Question
Q981772
P734
Q82799
USER
Who has the surname Hubert-Joseph Henry ?
(Q981772,P734,c(Q82799))
action filter_type
action find
entity Q981772
relation P734
type Q82799
['Q981772', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q981772 property:P734 ?t . ?t rdf:type ontology:Q82799 }
Hubert-Joseph Henry
action filter_type
action find
entity Hubert-Joseph Henry
relation family name
type name
['Hubert-Joseph Henry', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:Hubert-Joseph_Henry property:family_name ?t . ?t rdf:type ontology:name }
[]
name
Q5716947
SYSTEM
Henry
Q5716947
(Q981772,P734,c(Q82799))
action filter_type
action find
entity Q981772
relation P734
type Q82799
[ANSWER] has the surname Hubert-Joseph [ANSWER]
['Q981772', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q981772 property:P734 ?t . ?t rdf:type ontology:Q82799 }
Henry
Henry has the surname Hubert-Joseph Henry
Henry
action filter_type
action find
entity Hubert-Joseph Henry
relation family name
type name
['Hubert-Joseph Henry', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:Hubert-Joseph_Henry property:family_name ?t . ?t rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2156853 Q981772
P27
Q15617994
USER
Which administrative territories are Hubert-Joseph Henry or Robert Davidson a civilian of ?
OR((Q981772,P27,c(Q15617994)), (Q2156853,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q981772
relation P27
action find
entity Q2156853
relation P27
type Q15617994
{'OR': [['Q981772', 'P27', {'concept': 'Q15617994'}], ['Q2156853', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { VALUES ( ?v ) { ( resource:Q981772 ) ( resource:Q2156853 ) } . ?v property:P27 ?n } }
Robert Davidson Hubert-Joseph Henry
action filter_type
action union
action find
entity Hubert-Joseph Henry
relation country of citizenship
action find
entity Robert Davidson
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Hubert-Joseph Henry', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Robert Davidson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?v ) { ( resource:Hubert-Joseph_Henry ) ( resource:Robert_Davidson ) } . ?v property:country_of_citizenship ?n } }
[]
designation for an administrative territorial entity
Q142 Q145
SYSTEM
France, United Kingdom
Q142 Q145
OR((Q981772,P27,c(Q15617994)), (Q2156853,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q981772
relation P27
action find
entity Q2156853
relation P27
type Q15617994
[ANSWERS] are Hubert-Joseph Henry or Robert Davidson a civilian of
{'OR': [['Q981772', 'P27', {'concept': 'Q15617994'}], ['Q2156853', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { VALUES ( ?v ) { ( resource:Q981772 ) ( resource:Q2156853 ) } . ?v property:P27 ?n } }
France United Kingdom
France and United Kingdom are Hubert-Joseph Henry or Robert Davidson a civilian of
France United Kingdom
action filter_type
action union
action find
entity Hubert-Joseph Henry
relation country of citizenship
action find
entity Robert Davidson
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Hubert-Joseph Henry', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Robert Davidson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?v ) { ( resource:Hubert-Joseph_Henry ) ( resource:Robert_Davidson ) } . ?v property:country_of_citizenship ?n } }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q2342494
USER
Which administrative territories are the origin of greater number of film genres or collectables than that administrative territory ?
(c(Q201658)|c(Q2342494),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { ?p property:P495 ?y . VALUES ( ?p ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { ?p property:country_of_origin ?y . VALUES ( ?p ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
designation for an administrative territorial entity film genre collectable
Comparative|More/Less|Mult. entity type|Clarification
Q145
SYSTEM
Did you mean United Kingdom ?
(c(Q201658)|c(Q2342494),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { ?p property:P495 ?y . VALUES ( ?p ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
Did you mean United Kingdom ?
United Kingdom
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { ?p property:country_of_origin ?y . VALUES ( ?p ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q201658)|c(Q2342494),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(c(Q201658)|c(Q2342494),P495,c(Q15617994))
[ANSWER] is the origin of greater number of film genres or collectables than that administrative territory
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
United States of America
United States of America is the origin of greater number of film genres or collectables than that administrative territory
United States of America
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]