Simple Question (Direct)
Simple Question
Q4494454
P69
Q1935049
USER
What is the military school where Vladimir Khavinson was educated ?
(Q4494454,P69,c(Q1935049))
action filter_type
action find
entity Q4494454
relation P69
type Q1935049
['Q4494454', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?f WHERE { resource:Q4494454 property:P69 ?f . ?f rdf:type ontology:Q1935049 }
Vladimir Khavinson
action filter_type
action find
entity Vladimir Khavinson
relation educated at
type military school
['Vladimir Khavinson', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?f WHERE { resource:Vladimir_Khavinson property:educated_at ?f . ?f rdf:type ontology:military_school }
[]
military school
Q1459393
SYSTEM
S.M.Kirov Military Medical Academy
Q1459393
(Q4494454,P69,c(Q1935049))
action filter_type
action find
entity Q4494454
relation P69
type Q1935049
The military school Vladimir Khavinson was educated is [ANSWER]
['Q4494454', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?f WHERE { resource:Q4494454 property:P69 ?f . ?f rdf:type ontology:Q1935049 }
S.M.Kirov Military Medical Academy
The military school Vladimir Khavinson was educated is S.M.Kirov Military Medical Academy
S.M.Kirov Military Medical Academy
action filter_type
action find
entity Vladimir Khavinson
relation educated at
type military school
['Vladimir Khavinson', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?f WHERE { resource:Vladimir_Khavinson property:educated_at ?f . ?f rdf:type ontology:military_school }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1459393
P108
Q502895
USER
Which people work for that military school ?
(c(Q502895),P108,Q1459393)
action filter_type
action find_reverse
entity Q1459393
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q1459393']
SELECT DISTINCT ?b WHERE { ?b property:P108 resource:Q1459393 . ?b rdf:type ontology:Q502895 }
S.M.Kirov Military Medical Academy
action filter_type
action find_reverse
entity S.M.Kirov Military Medical Academy
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'S.M.Kirov Military Medical Academy']
SELECT DISTINCT ?b WHERE { ?b property:employer resource:S.M.Kirov_Military_Medical_Academy . ?b rdf:type ontology:common_name }
[]
common name
Q4123276 Q1681328 Q116344
SYSTEM
Veniamin Volkov, Sir James Wylie, Alexey Bystrow
Q2800803 Q4491499 Q116344 Q1681328 Q4237293 Q19811323 Q4516440 Q4402515 Q4532529 Q4123276 Q4107019
(c(Q502895),P108,Q1459393)
action filter_type
action find_reverse
entity Q1459393
relation P108
type Q502895
[ANSWERS] work for that military school
[{'concept': 'Q502895'}, 'P108', 'Q1459393']
SELECT DISTINCT ?b WHERE { ?b property:P108 resource:Q1459393 . ?b rdf:type ontology:Q502895 }
Cholodkovsky, Nicholas Alexander Nikolay Fomin Alexey Bystrow Sir James Wylie Nikolai Kravkov Vasily Ratimov Jakov Alekseevič Čistovič Leonid Ryabykh Alfons Erlicki Veniamin Volkov Nikolai Velyaminov
Veniamin Volkov, Sir James Wylie and Alexey Bystrow work for that military school
Veniamin Volkov Sir James Wylie Alexey Bystrow
action filter_type
action find_reverse
entity S.M.Kirov Military Medical Academy
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'S.M.Kirov Military Medical Academy']
SELECT DISTINCT ?b WHERE { ?b property:employer resource:S.M.Kirov_Military_Medical_Academy . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q4123276 Q1681328 Q116344
P166
Q618779
USER
What were awarded to those people ?
(Q4123276,P166,c(Q618779)) (Q1681328,P166,c(Q618779)) (Q116344,P166,c(Q618779))
action filter_type
action find
entity prev_answer
relation P166
type Q618779
['Q4123276', 'P166', {'concept': 'Q618779'}] ['Q1681328', 'P166', {'concept': 'Q618779'}] ['Q116344', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?r ) { ( resource:Q2800803 ) ( resource:Q4491499 ) ( resource:Q116344 ) } . ?u rdf:type ontology:Q618779 . ?r property:P166 ?u }
Veniamin Volkov Sir James Wylie Alexey Bystrow
action filter_type
action find
entity prev_answer
relation award received
type award
['Veniamin Volkov', 'award received', {'concept': 'award'}] ['Sir James Wylie', 'award received', {'concept': 'award'}] ['Alexey Bystrow', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?r ) { ( resource:Cholodkovsky,_Nicholas_Alexander ) ( resource:Nikolay_Fomin ) ( resource:Alexey_Bystrow ) } . ?u rdf:type ontology:award . ?r property:award_received ?u }
[]
award
Q185493 Q695106 Q1915961
SYSTEM
Order of Lenin, Order of the Red Star, Medal for Battle Merit
Q1915961 Q185493 Q18080149 Q18200478 Q208167 Q695106 Q18080423 Q1986005 Q27096841 Q15972369 Q93732 Q21148942 Q337463
(Q4123276,P166,c(Q618779)) (Q1681328,P166,c(Q618779)) (Q116344,P166,c(Q618779))
action filter_type
action find
entity prev_answer
relation P166
type Q618779
[ANSWERS] were awarded to those people
['Q4123276', 'P166', {'concept': 'Q618779'}] ['Q1681328', 'P166', {'concept': 'Q618779'}] ['Q116344', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?r ) { ( resource:Q2800803 ) ( resource:Q4491499 ) ( resource:Q116344 ) } . ?u rdf:type ontology:Q618779 . ?r property:P166 ?u }
Medal for Battle Merit Order of Lenin Order of the Patriotic War 1st class Order of the Patriotic War 2nd class Hero of Socialist Labour Order of the Red Star Order For Services to the Fatherland 4th class Medal of Zhukov Order of St. Vladimir, 1st class Order of Saint Anna, 1st class Order of the Red Eagle Order of St. Vladimir, 2nd class Order of the Red Banner
Order of Lenin, Order of the Red Star and Medal for Battle Merit were awarded to those people
Order of Lenin Order of the Red Star Medal for Battle Merit
action filter_type
action find
entity prev_answer
relation award received
type award
['Veniamin Volkov', 'award received', {'concept': 'award'}] ['Sir James Wylie', 'award received', {'concept': 'award'}] ['Alexey Bystrow', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?r ) { ( resource:Cholodkovsky,_Nicholas_Alexander ) ( resource:Nikolay_Fomin ) ( resource:Alexey_Bystrow ) } . ?u rdf:type ontology:award . ?r property:award_received ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q185493
P138
Q502895
USER
Which person is the etymology of Order of Lenin ?
(Q185493,P138,c(Q502895))
action filter_type
action find
entity Q185493
relation P138
type Q502895
['Q185493', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q185493 property:P138 ?c . ?c rdf:type ontology:Q502895 }
Order of Lenin
action filter_type
action find
entity Order of Lenin
relation named after
type common name
['Order of Lenin', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Order_of_Lenin property:named_after ?c . ?c rdf:type ontology:common_name }
[]
common name
Q1394
SYSTEM
Vladimir Lenin
Q1394
(Q185493,P138,c(Q502895))
action filter_type
action find
entity Q185493
relation P138
type Q502895
[ANSWER] is the etymology of Order of Lenin
['Q185493', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q185493 property:P138 ?c . ?c rdf:type ontology:Q502895 }
Vladimir Lenin
Vladimir Lenin is the etymology of Order of Lenin
Vladimir Lenin
action filter_type
action find
entity Order of Lenin
relation named after
type common name
['Order of Lenin', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Order_of_Lenin property:named_after ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1394
P25
Q502895
USER
Who was the mother of that one ?
(Q1394,P25,c(Q502895))
action filter_type
action find
entity Q1394
relation P25
type Q502895
['Q1394', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q1394 property:P25 ?l }
Vladimir Lenin
action filter_type
action find
entity Vladimir Lenin
relation mother
type common name
['Vladimir Lenin', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Vladimir_Lenin property:mother ?l }
[]
common name
Q470041
SYSTEM
Maria Alexandrovna Ulyanova
Q470041
(Q1394,P25,c(Q502895))
action filter_type
action find
entity Q1394
relation P25
type Q502895
The mother of that one was Princess [ANSWER]
['Q1394', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q1394 property:P25 ?l }
Maria Alexandrovna Ulyanova
The mother of that one was Princess Maria Alexandrovna Ulyanova
Maria Alexandrovna Ulyanova
action filter_type
action find
entity Vladimir Lenin
relation mother
type common name
['Vladimir Lenin', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Vladimir_Lenin property:mother ?l }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q2470746 Q116344
P106
Q12737077
USER
Which occupations are the job of Alexey Bystrow and Andrey Semyonov-Tyan-Shansky ?
AND((Q116344,P106,c(Q12737077)), (Q2470746,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q116344
relation P106
action find
entity Q2470746
relation P106
type Q12737077
{'AND': [['Q116344', 'P106', {'concept': 'Q12737077'}], ['Q2470746', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?o WHERE { resource:Q116344 property:P106 ?o . resource:Q2470746 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
Andrey Semyonov-Tyan-Shansky Alexey Bystrow
action filter_type
action intersection
action find
entity Alexey Bystrow
relation occupation
action find
entity Andrey Semyonov-Tyan-Shansky
relation occupation
type occupation
{'AND': [['Alexey Bystrow', 'occupation', {'concept': 'occupation'}], ['Andrey Semyonov-Tyan-Shansky', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?o WHERE { resource:Alexey_Bystrow property:occupation ?o . resource:Andrey_Semyonov-Tyan-Shansky property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q864503
SYSTEM
biologist
Q864503
AND((Q116344,P106,c(Q12737077)), (Q2470746,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q116344
relation P106
action find
entity Q2470746
relation P106
type Q12737077
The [ANSWER] is the job of Alexey Bystrow and Andrey Semyonov-Tyan-Shansky
{'AND': [['Q116344', 'P106', {'concept': 'Q12737077'}], ['Q2470746', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?o WHERE { resource:Q116344 property:P106 ?o . resource:Q2470746 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
biologist
The biologist is the job of Alexey Bystrow and Andrey Semyonov-Tyan-Shansky
biologist
action filter_type
action intersection
action find
entity Alexey Bystrow
relation occupation
action find
entity Andrey Semyonov-Tyan-Shansky
relation occupation
type occupation
{'AND': [['Alexey Bystrow', 'occupation', {'concept': 'occupation'}], ['Andrey Semyonov-Tyan-Shansky', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?o WHERE { resource:Alexey_Bystrow property:occupation ?o . resource:Andrey_Semyonov-Tyan-Shansky property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q184 Q4494454
P530 P27
Q15617994
USER
Which administrative territories do Vladimir Khavinson belong to and have diplomatic relationships with Belarus ?
AND((Q4494454,P27,c(Q15617994)), (Q184,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q4494454
relation P27
action find
entity Q184
relation P530
type Q15617994
{'AND': [['Q4494454', 'P27', {'concept': 'Q15617994'}], ['Q184', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { resource:Q184 property:P530 ?h . resource:Q4494454 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Belarus Vladimir Khavinson
action filter_type
action intersection
action find
entity Vladimir Khavinson
relation country of citizenship
action find
entity Belarus
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Vladimir Khavinson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { resource:Belarus property:diplomatic_relation ?h . resource:Vladimir_Khavinson property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
AND((Q4494454,P27,c(Q15617994)), (Q184,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q4494454
relation P27
action find
entity Q184
relation P530
type Q15617994
Vladimir Khavinson belong to the [ANSWER]
{'AND': [['Q4494454', 'P27', {'concept': 'Q15617994'}], ['Q184', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { resource:Q184 property:P530 ?h . resource:Q4494454 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Russia
Vladimir Khavinson belong to the Russia
Russia
action filter_type
action intersection
action find
entity Vladimir Khavinson
relation country of citizenship
action find
entity Belarus
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Vladimir Khavinson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { resource:Belarus property:diplomatic_relation ?h . resource:Vladimir_Khavinson property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q159 Q5342308
P27
Q502895
USER
Is Edward Clark a citizen of that administrative territory ?
(Q5342308,P27,Q159)
action is_in
entity Q5342308
action find
entity Q159
relation P27
['Q5342308', 'P27', 'Q159']
ASK WHERE { resource:Q159 property:P27 resource:Q5342308 }
Russia Edward Clark
action is_in
entity Edward Clark
action find
entity Russia
relation country of citizenship
['Edward Clark', 'country of citizenship', 'Russia']
ASK WHERE { resource:Russia property:country_of_citizenship resource:Edward_Clark }
[]
common name
SYSTEM
NO
(Q5342308,P27,Q159)
action is_in
entity Q5342308
action find
entity Q159
relation P27
[ANSWER]
['Q5342308', 'P27', 'Q159']
ASK WHERE { resource:Q159 property:P27 resource:Q5342308 }
No
action is_in
entity Edward Clark
action find
entity Russia
relation country of citizenship
['Edward Clark', 'country of citizenship', 'Russia']
ASK WHERE { resource:Russia property:country_of_citizenship resource:Edward_Clark }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q470041 Q1230850 Q1394
P40
Q502895
USER
Does Maria Alexandrovna Ulyanova have Publius Cornelius Lentulus Marcellinus and Vladimir Lenin as a child ?
(Q470041,P40,Q1230850) (Q470041,P40,Q1394)
action is_in
entity Q470041
action intersection
action find_reverse
entity Q1230850
relation P40
action find_reverse
entity Q1394
relation P40
['Q470041', 'P40', 'Q1230850'] ['Q470041', 'P40', 'Q1394']
ASK WHERE { resource:Q470041 property:P40 resource:Q1230850 . resource:Q470041 property:P40 resource:Q1394 }
Maria Alexandrovna Ulyanova Publius Cornelius Lentulus Marcellinus Vladimir Lenin
action is_in
entity Maria Alexandrovna Ulyanova
action intersection
action find_reverse
entity Publius Cornelius Lentulus Marcellinus
relation child
action find_reverse
entity Vladimir Lenin
relation child
['Maria Alexandrovna Ulyanova', 'child', 'Publius Cornelius Lentulus Marcellinus'] ['Maria Alexandrovna Ulyanova', 'child', 'Vladimir Lenin']
ASK WHERE { resource:Maria_Alexandrovna_Ulyanova property:child resource:Publius_Cornelius_Lentulus_Marcellinus . resource:Maria_Alexandrovna_Ulyanova property:child resource:Vladimir_Lenin }
[]
common name
SYSTEM
NO and YES respectively
(Q470041,P40,Q1230850) (Q470041,P40,Q1394)
action is_in
entity Q470041
action intersection
action find_reverse
entity Q1230850
relation P40
action find_reverse
entity Q1394
relation P40
[ANSWER]
['Q470041', 'P40', 'Q1230850'] ['Q470041', 'P40', 'Q1394']
ASK WHERE { resource:Q470041 property:P40 resource:Q1230850 . resource:Q470041 property:P40 resource:Q1394 }
NO and YES respectively
action is_in
entity Maria Alexandrovna Ulyanova
action intersection
action find_reverse
entity Publius Cornelius Lentulus Marcellinus
relation child
action find_reverse
entity Vladimir Lenin
relation child
['Maria Alexandrovna Ulyanova', 'child', 'Publius Cornelius Lentulus Marcellinus'] ['Maria Alexandrovna Ulyanova', 'child', 'Vladimir Lenin']
ASK WHERE { resource:Maria_Alexandrovna_Ulyanova property:child resource:Publius_Cornelius_Lentulus_Marcellinus . resource:Maria_Alexandrovna_Ulyanova property:child resource:Vladimir_Lenin }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q159 Q7267281
P35
Q502895
USER
Does Qazi Faez Isa have the highest formal authority in Russia ?
(Q159,P35,Q7267281)
action is_in
entity Q7267281
action find
entity Q159
relation P35
['Q159', 'P35', 'Q7267281']
ASK WHERE { resource:Q159 property:P35 resource:Q7267281 }
Russia Qazi Faez Isa
action is_in
entity Qazi Faez Isa
action find
entity Russia
relation head of state
['Russia', 'head of state', 'Qazi Faez Isa']
ASK WHERE { resource:Russia property:head_of_state resource:Qazi_Faez_Isa }
[]
common name
SYSTEM
NO
(Q159,P35,Q7267281)
action is_in
entity Q7267281
action find
entity Q159
relation P35
[ANSWER]
['Q159', 'P35', 'Q7267281']
ASK WHERE { resource:Q159 property:P35 resource:Q7267281 }
No
action is_in
entity Qazi Faez Isa
action find
entity Russia
relation head of state
['Russia', 'head of state', 'Qazi Faez Isa']
ASK WHERE { resource:Russia property:head_of_state resource:Qazi_Faez_Isa }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q685
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with around the same number of administrative territories as Solomon Islands ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?w ) WHERE { ?y property:P530 ?p . ?y rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Q685 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?w = ?q ) }
Solomon Islands
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?w ) WHERE { ?y property:diplomatic_relation ?p . ?y rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?w = ?q ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[ANSWERS] are known to have diplomatic connections with around the same number of administrative territories as Solomon Islands
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?w ) WHERE { ?y property:P530 ?p . ?y rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Q685 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?w = ?q ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria are known to have diplomatic connections with around the same number of administrative territories as Solomon Islands
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?w ) WHERE { ?y property:diplomatic_relation ?p . ?y rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?w = ?q ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q40
P1532
Q502895
USER
Which people play for that political territory ?
(c(Q502895),P1532,Q40)
action filter_type
action find_reverse
entity Q40
relation P1532
type Q502895
[{'concept': 'Q502895'}, 'P1532', 'Q40']
SELECT DISTINCT ?y WHERE { ?y property:P1532 resource:Q40 . ?y rdf:type ontology:Q502895 }
Austria
action filter_type
action find_reverse
entity Austria
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Austria']
SELECT DISTINCT ?y WHERE { ?y property:country_for_sport resource:Austria . ?y rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q35
SYSTEM
Did you mean Denmark ?
Q35 Q16 Q40
(c(Q502895),P1532,Q35) (c(Q502895),P1532,Q16) (c(Q502895),P1532,Q40)
[ANSWER]
[{'concept': 'Q502895'}, 'P1532', 'Q35'] [{'concept': 'Q502895'}, 'P1532', 'Q16'] [{'concept': 'Q502895'}, 'P1532', 'Q40']
SELECT DISTINCT ?y WHERE { ?y property:P1532 resource:Q40 . ?y rdf:type ontology:Q502895 }
Denmark Canada Austria
Did you mean Denmark ?
Denmark
[{'concept': 'common name'}, 'country for sport', 'Denmark'] [{'concept': 'common name'}, 'country for sport', 'Canada'] [{'concept': 'common name'}, 'country for sport', 'Austria']
SELECT DISTINCT ?y WHERE { ?y property:country_for_sport resource:Austria . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Austria. Could you tell me the answer for that?
(c(Q502895),P1532,Q40)
Q40
[{'concept': 'Q502895'}, 'P1532', 'Q40']
[{'concept': 'common name'}, 'country for sport', 'Austria']
[]
Q931569 Q1927083 Q22083608
SYSTEM
Mensur Suljović, Michael Buchleitner, Herwig Röttl
Q20993687 Q17198667 Q22083608 Q1927083 Q931569
(c(Q502895),P1532,Q40)
action filter_type
action find_reverse
entity Q40
relation P1532
type Q502895
[ANSWERS] play for that political territory
[{'concept': 'Q502895'}, 'P1532', 'Q40']
SELECT DISTINCT ?y WHERE { ?y property:P1532 resource:Q40 . ?y rdf:type ontology:Q502895 }
Timna Moser Rowby-John Rodriguez Herwig Röttl Michael Buchleitner Mensur Suljović
Mensur Suljović, Michael Buchleitner and Herwig Röttl play for that political territory
Mensur Suljović Michael Buchleitner Herwig Röttl
action filter_type
action find_reverse
entity Austria
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Austria']
SELECT DISTINCT ?y WHERE { ?y property:country_for_sport resource:Austria . ?y rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q16 Q159
P27
Q502895
USER
Which people are a citizen of Russia and Canada ?
AND((c(Q502895),P27,Q159), (c(Q502895),P27,Q16))
action filter_type
action intersection
action find_reverse
entity Q159
relation P27
action find_reverse
entity Q16
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q159'], [{'concept': 'Q502895'}, 'P27', 'Q16']]}
SELECT DISTINCT ?a WHERE { ?a property:P27 resource:Q159 . ?a property:P27 resource:Q16 . ?a rdf:type ontology:Q502895 }
Canada Russia
action filter_type
action intersection
action find_reverse
entity Russia
relation country of citizenship
action find_reverse
entity Canada
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Russia'], [{'concept': 'common name'}, 'country of citizenship', 'Canada']]}
SELECT DISTINCT ?a WHERE { ?a property:country_of_citizenship resource:Russia . ?a property:country_of_citizenship resource:Canada . ?a rdf:type ontology:common_name }
[]
common name
Q4228271 Q43929 Q4105474 Q4109286 Q4333466 Q4498609 Q4139260 Q7910847
SYSTEM
Yuri Kolokolnikov, Ivan Babikov, Kirill Vats, Mikhail Vershovsky, Alex Battler, Askold G. Khovanskii, Olga Glagoleva, Valentina Battler
Q4228271 Q43929 Q4105474 Q4109286 Q4333466 Q4498609 Q4139260 Q7910847
AND((c(Q502895),P27,Q159), (c(Q502895),P27,Q16))
action filter_type
action intersection
action find_reverse
entity Q159
relation P27
action find_reverse
entity Q16
relation P27
type Q502895
[ANSWERS] are a citizen of Russia and Canada
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q159'], [{'concept': 'Q502895'}, 'P27', 'Q16']]}
SELECT DISTINCT ?a WHERE { ?a property:P27 resource:Q159 . ?a property:P27 resource:Q16 . ?a rdf:type ontology:Q502895 }
Yuri Kolokolnikov Ivan Babikov Kirill Vats Mikhail Vershovsky Alex Battler Askold G. Khovanskii Olga Glagoleva Valentina Battler
Yuri Kolokolnikov, Ivan Babikov, Kirill Vats, Mikhail Vershovsky, Alex Battler, Askold G. Khovanskii, Olga Glagoleva and Valentina Battler are a citizen of Russia and Canada
Yuri Kolokolnikov Ivan Babikov Kirill Vats Mikhail Vershovsky Alex Battler Askold G. Khovanskii Olga Glagoleva Valentina Battler
action filter_type
action intersection
action find_reverse
entity Russia
relation country of citizenship
action find_reverse
entity Canada
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Russia'], [{'concept': 'common name'}, 'country of citizenship', 'Canada']]}
SELECT DISTINCT ?a WHERE { ?a property:country_of_citizenship resource:Russia . ?a property:country_of_citizenship resource:Canada . ?a rdf:type ontology:common_name }
[]