Simple Question (Direct)
Simple Question
Q20893924
P21
Q290
USER
What is the sex of Natalia Strelchenko ?
(Q20893924,P21,c(Q290))
action filter_type
action find
entity Q20893924
relation P21
type Q290
['Q20893924', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q20893924 property:P21 ?w . ?w rdf:type ontology:Q290 }
Natalia Strelchenko
action filter_type
action find
entity Natalia Strelchenko
relation gender
type sex
['Natalia Strelchenko', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Natalia_Strelchenko property:gender ?w . ?w rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q20893924,P21,c(Q290))
action filter_type
action find
entity Q20893924
relation P21
type Q290
The sex of Natalia Strelchenko is the [ANSWER]
['Q20893924', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q20893924 property:P21 ?w . ?w rdf:type ontology:Q290 }
female
The sex of Natalia Strelchenko is the female
female
action filter_type
action find
entity Natalia Strelchenko
relation gender
type sex
['Natalia Strelchenko', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Natalia_Strelchenko property:gender ?w . ?w rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20893924
P136
Q151885
USER
Which concept is the genre for Natalia Strelchenko ?
(Q20893924,P136,c(Q151885))
action filter_type
action find
entity Q20893924
relation P136
type Q151885
['Q20893924', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?j WHERE { resource:Q20893924 property:P136 ?j . ?j rdf:type ontology:Q151885 }
Natalia Strelchenko
action filter_type
action find
entity Natalia Strelchenko
relation genre
type concept
['Natalia Strelchenko', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?j WHERE { resource:Natalia_Strelchenko property:genre ?j . ?j rdf:type ontology:concept }
[]
concept
Q9730
SYSTEM
classical music
Q9730
(Q20893924,P136,c(Q151885))
action filter_type
action find
entity Q20893924
relation P136
type Q151885
In [ANSWER] is the genre for Natalia Strelchenko
['Q20893924', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?j WHERE { resource:Q20893924 property:P136 ?j . ?j rdf:type ontology:Q151885 }
classical music
In classical music is the genre for Natalia Strelchenko
classical music
action filter_type
action find
entity Natalia Strelchenko
relation genre
type concept
['Natalia Strelchenko', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?j WHERE { resource:Natalia_Strelchenko property:genre ?j . ?j rdf:type ontology:concept }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4688846
Q151885
USER
And what about Affair of the Heart?
(Q4688846,P136,c(Q151885))
action filter_type
action find
entity Q4688846
relation P136
type Q151885
['Q4688846', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?j WHERE { resource:Q4688846 property:P136 ?j . ?j rdf:type ontology:Q151885 }
Affair of the Heart
action filter_type
action find
entity Affair of the Heart
relation genre
type concept
['Affair of the Heart', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?j WHERE { resource:Affair_of_the_Heart property:genre ?j . ?j rdf:type ontology:concept }
[]
concept
Q37073
SYSTEM
pop music
Q37073
(Q4688846,P136,c(Q151885))
action filter_type
action find
entity Q4688846
relation P136
type Q151885
[ANSWER]
['Q4688846', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?j WHERE { resource:Q4688846 property:P136 ?j . ?j rdf:type ontology:Q151885 }
pop music
pop music
action filter_type
action find
entity Affair of the Heart
relation genre
type concept
['Affair of the Heart', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?j WHERE { resource:Affair_of_the_Heart property:genre ?j . ?j rdf:type ontology:concept }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7793206 Q20893924
P27
Q15617994
USER
Which administrative territories are the native countriesof Natalia Strelchenko or Thomas Ponsonby, 3rd Baron Ponsonby of Shulbrede ?
OR((Q20893924,P27,c(Q15617994)), (Q7793206,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q20893924
relation P27
action find
entity Q7793206
relation P27
type Q15617994
{'OR': [['Q20893924', 'P27', {'concept': 'Q15617994'}], ['Q7793206', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q20893924 property:P27 ?h } UNION { resource:Q7793206 property:P27 ?h } } . ?h rdf:type ontology:Q15617994 }
Thomas Ponsonby, 3rd Baron Ponsonby of Shulbrede Natalia Strelchenko
action filter_type
action union
action find
entity Natalia Strelchenko
relation country of citizenship
action find
entity Thomas Ponsonby, 3rd Baron Ponsonby of Shulbrede
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Natalia Strelchenko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Thomas Ponsonby, 3rd Baron Ponsonby of Shulbrede', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Natalia_Strelchenko property:country_of_citizenship ?h } UNION { resource:Thomas_Ponsonby,_3rd_Baron_Ponsonby_of_Shulbrede property:country_of_citizenship ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q145
SYSTEM
Norway, United Kingdom
Q20 Q145
OR((Q20893924,P27,c(Q15617994)), (Q7793206,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q20893924
relation P27
action find
entity Q7793206
relation P27
type Q15617994
[ANSWERS] are the native countriesof Natalia Strelchenko or Thomas Ponsonby, 3rd Baron Ponsonby of Shulbrede
{'OR': [['Q20893924', 'P27', {'concept': 'Q15617994'}], ['Q7793206', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q20893924 property:P27 ?h } UNION { resource:Q7793206 property:P27 ?h } } . ?h rdf:type ontology:Q15617994 }
Norway United Kingdom
Norway and United Kingdom are the native countriesof Natalia Strelchenko or Thomas Ponsonby, 3rd Baron Ponsonby of Shulbrede
Norway United Kingdom
action filter_type
action union
action find
entity Natalia Strelchenko
relation country of citizenship
action find
entity Thomas Ponsonby, 3rd Baron Ponsonby of Shulbrede
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Natalia Strelchenko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Thomas Ponsonby, 3rd Baron Ponsonby of Shulbrede', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Natalia_Strelchenko property:country_of_citizenship ?h } UNION { resource:Thomas_Ponsonby,_3rd_Baron_Ponsonby_of_Shulbrede property:country_of_citizenship ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q20 Q145
P530
Q1048835
USER
Which political territories have diplomatic relations with Norway and United Kingdom ?
(Q20,P530,c(Q1048835)) (Q145,P530,c(Q1048835))
action union
action filter_type
action find
entity Q20
relation P530
type Q1048835
action filter_type
action find
entity Q145
relation P530
type Q1048835
['Q20', 'P530', {'concept': 'Q1048835'}] ['Q145', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { ?t property:P530 ?u . VALUES ( ?t ) { ( resource:Q20 ) ( resource:Q145 ) } }
Norway United Kingdom
action union
action filter_type
action find
entity Norway
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type political territorial entity
['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { ?t property:diplomatic_relation ?u . VALUES ( ?t ) { ( resource:Norway ) ( resource:United_Kingdom ) } }
[]
political territorial entity
Q183 Q183 Q408
SYSTEM
Australia for 3rd, Germany for 1st, 2nd
Q408 Q16 Q183 Q183 Q408 Q16
(Q20,P530,c(Q1048835)) (Q145,P530,c(Q1048835))
action union
action filter_type
action find
entity Q20
relation P530
type Q1048835
action filter_type
action find
entity Q145
relation P530
type Q1048835
[ANSWERS]
['Q20', 'P530', {'concept': 'Q1048835'}] ['Q145', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { ?t property:P530 ?u . VALUES ( ?t ) { ( resource:Q20 ) ( resource:Q145 ) } }
Australia Canada Germany Germany Australia Canada
Germany, Germany and Australia have diplomatic relations with Norway and United Kingdom
Germany Germany Australia
action union
action filter_type
action find
entity Norway
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type political territorial entity
['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { ?t property:diplomatic_relation ?u . VALUES ( ?t ) { ( resource:Norway ) ( resource:United_Kingdom ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q20
P138
Q2712963
USER
Which abstract noun is namesake of that administrative territory ?
(Q20,P138,c(Q2712963))
action filter_type
action find
entity Q20
relation P138
type Q2712963
['Q20', 'P138', {'concept': 'Q2712963'}]
SELECT DISTINCT ?w WHERE { resource:Q20 property:P138 ?w . ?w rdf:type ontology:Q2712963 }
Norway
action filter_type
action find
entity Norway
relation named after
type abstract noun
['Norway', 'named after', {'concept': 'abstract noun'}]
SELECT DISTINCT ?w WHERE { resource:Norway property:named_after ?w . ?w rdf:type ontology:abstract_noun }
[]
abstract noun
Clarification for simple ques.
Q20
SYSTEM
Did you mean Norway ?
Q183 Q183 Q408
(Q183,P138,c(Q2712963)) (Q183,P138,c(Q2712963)) (Q408,P138,c(Q2712963))
[ANSWER]
['Q183', 'P138', {'concept': 'Q2712963'}] ['Q183', 'P138', {'concept': 'Q2712963'}] ['Q408', 'P138', {'concept': 'Q2712963'}]
SELECT DISTINCT ?w WHERE { resource:Q20 property:P138 ?w . ?w rdf:type ontology:Q2712963 }
Germany Germany Australia
Did you mean Norway ?
Norway
['Germany', 'named after', {'concept': 'abstract noun'}] ['Germany', 'named after', {'concept': 'abstract noun'}] ['Australia', 'named after', {'concept': 'abstract noun'}]
SELECT DISTINCT ?w WHERE { resource:Norway property:named_after ?w . ?w rdf:type ontology:abstract_noun }
[]
Simple Question (Coreferenced)
USER
Yes
(Q20,P138,c(Q2712963))
['Q20', 'P138', {'concept': 'Q2712963'}]
['Norway', 'named after', {'concept': 'abstract noun'}]
[]
Q659
SYSTEM
north
Q659
(Q20,P138,c(Q2712963))
action filter_type
action find
entity Q20
relation P138
type Q2712963
[ANSWER] is namesake of that administrative territory
['Q20', 'P138', {'concept': 'Q2712963'}]
SELECT DISTINCT ?w WHERE { resource:Q20 property:P138 ?w . ?w rdf:type ontology:Q2712963 }
north
North is namesake of that administrative territory
north
action filter_type
action find
entity Norway
relation named after
type abstract noun
['Norway', 'named after', {'concept': 'abstract noun'}]
SELECT DISTINCT ?w WHERE { resource:Norway property:named_after ?w . ?w rdf:type ontology:abstract_noun }
[]