Simple Question (Direct)
Simple Question
Q1688204
P1196
Q1931388
USER
What manner did Jesse Winchester die ?
(Q1688204,P1196,c(Q1931388))
action filter_type
action find
entity Q1688204
relation P1196
type Q1931388
['Q1688204', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?f WHERE { resource:Q1688204 property:P1196 ?f . ?f rdf:type ontology:Q1931388 }
Jesse Winchester
action filter_type
action find
entity Jesse Winchester
relation manner of death
type cause of death
['Jesse Winchester', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?f WHERE { resource:Jesse_Winchester property:manner_of_death ?f . ?f rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q1688204,P1196,c(Q1931388))
action filter_type
action find
entity Q1688204
relation P1196
type Q1931388
Jesse Winchester died in [ANSWER]
['Q1688204', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?f WHERE { resource:Q1688204 property:P1196 ?f . ?f rdf:type ontology:Q1931388 }
natural causes
Jesse Winchester died in natural causes
natural causes
action filter_type
action find
entity Jesse Winchester
relation manner of death
type cause of death
['Jesse Winchester', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?f WHERE { resource:Jesse_Winchester property:manner_of_death ?f . ?f rdf:type ontology:cause_of_death }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1688204
P21
Q290
USER
Which sex does Jesse Winchester belong to ?
(Q1688204,P21,c(Q290))
action filter_type
action find
entity Q1688204
relation P21
type Q290
['Q1688204', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q1688204 property:P21 ?l . ?l rdf:type ontology:Q290 }
Jesse Winchester
action filter_type
action find
entity Jesse Winchester
relation gender
type sex
['Jesse Winchester', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Jesse_Winchester property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1688204,P21,c(Q290))
action filter_type
action find
entity Q1688204
relation P21
type Q290
Jesse Winchester belongs to [ANSWER]
['Q1688204', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q1688204 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
Jesse Winchester belongs to male
male
action filter_type
action find
entity Jesse Winchester
relation gender
type sex
['Jesse Winchester', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Jesse_Winchester property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21070357
Q290
USER
And also tell me about Abram Hill?
(Q21070357,P21,c(Q290))
action filter_type
action find
entity Q21070357
relation P21
type Q290
['Q21070357', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q290 . resource:Q21070357 property:P21 ?c }
Abram Hill
action filter_type
action find
entity Abram Hill
relation gender
type sex
['Abram Hill', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:sex . resource:Abram_Hill property:gender ?c }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q21070357,P21,c(Q290))
action filter_type
action find
entity Q21070357
relation P21
type Q290
[ANSWER]
['Q21070357', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q290 . resource:Q21070357 property:P21 ?c }
male
male
action filter_type
action find
entity Abram Hill
relation gender
type sex
['Abram Hill', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:sex . resource:Abram_Hill property:gender ?c }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q19899641
P21
Q502895
USER
Is Léon Morane a that sex ?
(Q19899641,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q19899641
relation P21
['Q19899641', 'P21', 'Q6581097']
ASK WHERE { resource:Q19899641 property:P21 resource:Q6581097 }
male Léon Morane
action is_in
entity male
action find
entity Léon Morane
relation gender
['Léon Morane', 'gender', 'male']
ASK WHERE { resource:Léon_Morane property:gender resource:male }
[]
common name
SYSTEM
YES
(Q19899641,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q19899641
relation P21
[ANSWER]
['Q19899641', 'P21', 'Q6581097']
ASK WHERE { resource:Q19899641 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Léon Morane
relation gender
['Léon Morane', 'gender', 'male']
ASK WHERE { resource:Léon_Morane property:gender resource:male }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1688204
P264
Q334453
USER
Which divisions are the record labels of Jesse Winchester ?
(Q1688204,P264,c(Q334453))
action filter_type
action find
entity Q1688204
relation P264
type Q334453
['Q1688204', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?q WHERE { resource:Q1688204 property:P264 ?q . ?q rdf:type ontology:Q334453 }
Jesse Winchester
action filter_type
action find
entity Jesse Winchester
relation record label
type division
['Jesse Winchester', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?q WHERE { resource:Jesse_Winchester property:record_label ?q . ?q rdf:type ontology:division }
[]
division
Q4818321 Q4781367
SYSTEM
Attic Records, Appleseed Recordings
Q4818321 Q4781367
(Q1688204,P264,c(Q334453))
action filter_type
action find
entity Q1688204
relation P264
type Q334453
[ANSWERS] are the record labels of Jesse Winchester
['Q1688204', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?q WHERE { resource:Q1688204 property:P264 ?q . ?q rdf:type ontology:Q334453 }
Attic Records Appleseed Recordings
Attic Records and Appleseed Recordings are the record labels of Jesse Winchester
Attic Records Appleseed Recordings
action filter_type
action find
entity Jesse Winchester
relation record label
type division
['Jesse Winchester', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?q WHERE { resource:Jesse_Winchester property:record_label ?q . ?q rdf:type ontology:division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1688204
P69
Q163740
USER
Which nonprofit organization was Jesse Winchester educated at ?
(Q1688204,P69,c(Q163740))
action filter_type
action find
entity Q1688204
relation P69
type Q163740
['Q1688204', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q163740 . resource:Q1688204 property:P69 ?z }
Jesse Winchester
action filter_type
action find
entity Jesse Winchester
relation educated at
type nonprofit organization
['Jesse Winchester', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:nonprofit_organization . resource:Jesse_Winchester property:educated_at ?z }
[]
nonprofit organization
Q49166
SYSTEM
Williams College
Q49166
(Q1688204,P69,c(Q163740))
action filter_type
action find
entity Q1688204
relation P69
type Q163740
Jesse Winchester was educated at [ANSWER]
['Q1688204', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q163740 . resource:Q1688204 property:P69 ?z }
Williams College
Jesse Winchester was educated at Williams College
Williams College
action filter_type
action find
entity Jesse Winchester
relation educated at
type nonprofit organization
['Jesse Winchester', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:nonprofit_organization . resource:Jesse_Winchester property:educated_at ?z }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2030876 Q49166
P17
Q15617994
USER
Which administrative territories are Williams College or Western Area Rural District a part of ?
OR((Q49166,P17,c(Q15617994)), (Q2030876,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q49166
relation P17
action find
entity Q2030876
relation P17
type Q15617994
{'OR': [['Q49166', 'P17', {'concept': 'Q15617994'}], ['Q2030876', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q49166 property:P17 ?h } UNION { resource:Q2030876 property:P17 ?h } } . ?h rdf:type ontology:Q15617994 }
Western Area Rural District Williams College
action filter_type
action union
action find
entity Williams College
relation country
action find
entity Western Area Rural District
relation country
type designation for an administrative territorial entity
{'OR': [['Williams College', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Western Area Rural District', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Williams_College property:country ?h } UNION { resource:Western_Area_Rural_District property:country ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q1044
SYSTEM
United States of America, Sierra Leone
Q30 Q1044
OR((Q49166,P17,c(Q15617994)), (Q2030876,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q49166
relation P17
action find
entity Q2030876
relation P17
type Q15617994
[ANSWERS] are Williams College or Western Area Rural District a part of
{'OR': [['Q49166', 'P17', {'concept': 'Q15617994'}], ['Q2030876', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q49166 property:P17 ?h } UNION { resource:Q2030876 property:P17 ?h } } . ?h rdf:type ontology:Q15617994 }
United States of America Sierra Leone
United States of America and Sierra Leone are Williams College or Western Area Rural District a part of
United States of America Sierra Leone
action filter_type
action union
action find
entity Williams College
relation country
action find
entity Western Area Rural District
relation country
type designation for an administrative territorial entity
{'OR': [['Williams College', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Western Area Rural District', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Williams_College property:country ?h } UNION { resource:Western_Area_Rural_District property:country ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q15416
USER
How many administrative territories are the countries of origin of greater number of film genres or television programs than that administrative territory ?
(c(Q201658)|c(Q15416),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) 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:television_program }
[]
designation for an administrative territorial entity film genre television program
Comparative|Count over More/Less|Mult. entity type|Clarification
Q30
SYSTEM
Did you mean United States of America ?
(c(Q201658)|c(Q15416),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
Did you mean United States of America ?
United States of America
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) 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:television_program }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q201658)|c(Q15416),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
0
(c(Q201658)|c(Q15416),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
0
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) 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:television_program }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6744801 Q2030876
P17
Q15617994
USER
Which administrative territories are Western Area Rural District or Maltese International Trade Fair Grounds situated in ?
OR((Q2030876,P17,c(Q15617994)), (Q6744801,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2030876
relation P17
action find
entity Q6744801
relation P17
type Q15617994
{'OR': [['Q2030876', 'P17', {'concept': 'Q15617994'}], ['Q6744801', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . { { resource:Q6744801 property:P17 ?g } UNION { resource:Q2030876 property:P17 ?g } } }
Maltese International Trade Fair Grounds Western Area Rural District
action filter_type
action union
action find
entity Western Area Rural District
relation country
action find
entity Maltese International Trade Fair Grounds
relation country
type designation for an administrative territorial entity
{'OR': [['Western Area Rural District', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Maltese International Trade Fair Grounds', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Maltese_International_Trade_Fair_Grounds property:country ?g } UNION { resource:Western_Area_Rural_District property:country ?g } } }
[]
designation for an administrative territorial entity
Q1044 Q233
SYSTEM
Sierra Leone, Malta
Q1044 Q233
OR((Q2030876,P17,c(Q15617994)), (Q6744801,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2030876
relation P17
action find
entity Q6744801
relation P17
type Q15617994
Western Area Rural District or Maltese International Trade Fair Grounds are situated in [ANSWERS]
{'OR': [['Q2030876', 'P17', {'concept': 'Q15617994'}], ['Q6744801', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . { { resource:Q6744801 property:P17 ?g } UNION { resource:Q2030876 property:P17 ?g } } }
Sierra Leone Malta
Western Area Rural District or Maltese International Trade Fair Grounds are situated in Sierra Leone and Malta
Sierra Leone Malta
action filter_type
action union
action find
entity Western Area Rural District
relation country
action find
entity Maltese International Trade Fair Grounds
relation country
type designation for an administrative territorial entity
{'OR': [['Western Area Rural District', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Maltese International Trade Fair Grounds', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Maltese_International_Trade_Fair_Grounds property:country ?g } UNION { resource:Western_Area_Rural_District property:country ?g } } }
[]