Simple Question (Direct)
Simple Question
Q3033192
P21
Q290
USER
What is the sex of Dmitriy Tarabin ?
(Q3033192,P21,c(Q290))
action filter_type
action find
entity Q3033192
relation P21
type Q290
['Q3033192', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q3033192 property:P21 ?p . ?p rdf:type ontology:Q290 }
Dmitriy Tarabin
action filter_type
action find
entity Dmitriy Tarabin
relation gender
type sex
['Dmitriy Tarabin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Dmitriy_Tarabin property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3033192,P21,c(Q290))
action filter_type
action find
entity Q3033192
relation P21
type Q290
The sex of Dmitriy Tarabin is the [ANSWER]
['Q3033192', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q3033192 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
The sex of Dmitriy Tarabin is the male
male
action filter_type
action find
entity Dmitriy Tarabin
relation gender
type sex
['Dmitriy Tarabin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Dmitriy_Tarabin property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3033192
P27
Q15617994
USER
Which administrative territory is Dmitriy Tarabin an inhabitant of ?
(Q3033192,P27,c(Q15617994))
action filter_type
action find
entity Q3033192
relation P27
type Q15617994
['Q3033192', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q3033192 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Dmitriy Tarabin
action filter_type
action find
entity Dmitriy Tarabin
relation country of citizenship
type designation for an administrative territorial entity
['Dmitriy Tarabin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Dmitriy_Tarabin property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
(Q3033192,P27,c(Q15617994))
action filter_type
action find
entity Q3033192
relation P27
type Q15617994
[ANSWER] is Dmitriy Tarabin an inhabitant of
['Q3033192', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q3033192 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Russia
Russia is Dmitriy Tarabin an inhabitant of
Russia
action filter_type
action find
entity Dmitriy Tarabin
relation country of citizenship
type designation for an administrative territorial entity
['Dmitriy Tarabin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Dmitriy_Tarabin property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q159 Q30
P47
Q15617994
USER
Does United States of America have a shared border with that one ?
(Q159,P47,Q30)
action is_in
entity Q30
action find
entity Q159
relation P47
['Q159', 'P47', 'Q30']
ASK WHERE { resource:Q159 property:P47 resource:Q30 }
Russia United States of America
action is_in
entity United States of America
action find
entity Russia
relation shares border with
['Russia', 'shares border with', 'United States of America']
ASK WHERE { resource:Russia property:shares_border_with resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q159,P47,Q30)
action is_in
entity Q30
action find
entity Q159
relation P47
[ANSWER]
['Q159', 'P47', 'Q30']
ASK WHERE { resource:Q159 property:P47 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Russia
relation shares border with
['Russia', 'shares border with', 'United States of America']
ASK WHERE { resource:Russia property:shares_border_with resource:United_States_of_America }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q40
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic associations with approximately the same number of administrative territories as Austria ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?x ) WHERE { ?m property:P530 ?j . ?m rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { resource:Q40 property:P530 ?k . ?k rdf:type ontology:Q1048835 } } . FILTER ( ?x = ?w ) }
Austria
action count
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 Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?x ) WHERE { ?m property:diplomatic_relation ?j . ?m rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { resource:Austria property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity } } . FILTER ( ?x = ?w ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?x ) WHERE { ?m property:P530 ?j . ?m rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { resource:Q40 property:P530 ?k . ?k rdf:type ontology:Q1048835 } } . FILTER ( ?x = ?w ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
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 Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?x ) WHERE { ?m property:diplomatic_relation ?j . ?m rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { resource:Austria property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity } } . FILTER ( ?x = ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q778
P530
Q15617994 Q1048835
USER
And what about The Bahamas?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q778
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?c ) WHERE { ?x property:P530 ?n . ?x rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?c = ?u ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Q778 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } }
The Bahamas
action count
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 The Bahamas
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?c ) WHERE { ?x property:diplomatic_relation ?n . ?x rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?c = ?u ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:The_Bahamas property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q778
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?c ) WHERE { ?x property:P530 ?n . ?x rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?c = ?u ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Q778 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
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 The Bahamas
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?c ) WHERE { ?x property:diplomatic_relation ?n . ?x rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?c = ?u ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:The_Bahamas property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159
P35
Q502895
USER
Who are the chiefs of state of Russia ?
(Q159,P35,c(Q502895))
action filter_type
action find
entity Q159
relation P35
type Q502895
['Q159', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q159 property:P35 ?j . ?j rdf:type ontology:Q502895 }
Russia
action filter_type
action find
entity Russia
relation head of state
type common name
['Russia', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Russia property:head_of_state ?j . ?j rdf:type ontology:common_name }
[]
common name
Q34453 Q23530 Q7747
SYSTEM
Boris Yeltsin, Dmitry Medvedev, Vladimir Putin
Q34453 Q23530 Q7747
(Q159,P35,c(Q502895))
action filter_type
action find
entity Q159
relation P35
type Q502895
The chiefs of state of Russia are [ANSWERS]
['Q159', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q159 property:P35 ?j . ?j rdf:type ontology:Q502895 }
Boris Yeltsin Dmitry Medvedev Vladimir Putin
The chiefs of state of Russia are Boris Yeltsin, Dmitry Medvedev and Vladimir Putin
Boris Yeltsin Dmitry Medvedev Vladimir Putin
action filter_type
action find
entity Russia
relation head of state
type common name
['Russia', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Russia property:head_of_state ?j . ?j rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q11424
USER
How many films have been dubbed by around 24 people ?
(c(Q11424),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q11424
type Q502895
value 24
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?z ) WHERE { ?h property:P725 ?i . ?h rdf:type ontology:Q11424 . ?i rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?z = 24 ) }
action count
action approx
action find_tuple_counts
relation voice actor
type film
type common name
value 24
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?z ) WHERE { ?h property:voice_actor ?i . ?h rdf:type ontology:film . ?i rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?z = 24 ) }
[]
common name film
SYSTEM
21
Q191753 Q785294 Q204662 Q270470 Q334132 Q179673 Q216929 Q165512 Q933887 Q329316 Q213787 Q19090 Q184701 Q2059996 Q218894 Q15270775 Q189875 Q199839 Q36479 Q39722 Q40895
(c(Q11424),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q11424
type Q502895
value 24
[ANSWER]
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?z ) WHERE { ?h property:P725 ?i . ?h rdf:type ontology:Q11424 . ?i rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?z = 24 ) }
Cinderella Captain of the Forest The Sword in the Stone Peter Pan The Great Mouse Detective Beauty and the Beast Oliver & Company One Hundred and One Dalmatians Tintin and the Temple of the Sun The Black Cauldron The Hunchback of Notre Dame Robin Hood The Aristocats My Little Pony: The Movie Pocahontas Hotel Transylvania 2 Alice in Wonderland The Jungle Book The Lion King The Rescuers Dumbo
21
action count
action approx
action find_tuple_counts
relation voice actor
type film
type common name
value 24
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?z ) WHERE { ?h property:voice_actor ?i . ?h rdf:type ontology:film . ?i rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?z = 24 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7747
P1038
Q502895
USER
Which people are relatives of Vladimir Putin ?
(Q7747,P1038,c(Q502895))
action filter_type
action find
entity Q7747
relation P1038
type Q502895
['Q7747', 'P1038', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q7747 property:P1038 ?t . ?t rdf:type ontology:Q502895 }
Vladimir Putin
action filter_type
action find
entity Vladimir Putin
relation relative
type common name
['Vladimir Putin', 'relative', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Vladimir_Putin property:relative ?t . ?t rdf:type ontology:common_name }
[]
common name
Q15087614 Q23664531 Q27303667
SYSTEM
Roman Putin, Kirill Shamalov, Igor Alexandrovich Putin
Q15087614 Q23664531 Q27303667
(Q7747,P1038,c(Q502895))
action filter_type
action find
entity Q7747
relation P1038
type Q502895
[ANSWERS] are relatives of Vladimir Putin
['Q7747', 'P1038', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q7747 property:P1038 ?t . ?t rdf:type ontology:Q502895 }
Roman Putin Kirill Shamalov Igor Alexandrovich Putin
Roman Putin, Kirill Shamalov and Igor Alexandrovich Putin are relatives of Vladimir Putin
Roman Putin Kirill Shamalov Igor Alexandrovich Putin
action filter_type
action find
entity Vladimir Putin
relation relative
type common name
['Vladimir Putin', 'relative', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Vladimir_Putin property:relative ?t . ?t rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q23664531
P26
Q502895
USER
Which person is married to that one ?
(Q23664531,P26,c(Q502895))
action filter_type
action find
entity Q23664531
relation P26
type Q502895
['Q23664531', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q23664531 property:P26 ?o . ?o rdf:type ontology:Q502895 }
Kirill Shamalov
action filter_type
action find
entity Kirill Shamalov
relation spouse
type common name
['Kirill Shamalov', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Kirill_Shamalov property:spouse ?o . ?o rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q15087614
SYSTEM
Did you mean Roman Putin ?
Q15087614 Q23664531 Q27303667
(Q15087614,P26,c(Q502895)) (Q23664531,P26,c(Q502895)) (Q27303667,P26,c(Q502895))
[ANSWER]
['Q15087614', 'P26', {'concept': 'Q502895'}] ['Q23664531', 'P26', {'concept': 'Q502895'}] ['Q27303667', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q23664531 property:P26 ?o . ?o rdf:type ontology:Q502895 }
Roman Putin Kirill Shamalov Igor Alexandrovich Putin
Did you mean Roman Putin ?
Roman Putin
['Roman Putin', 'spouse', {'concept': 'common name'}] ['Kirill Shamalov', 'spouse', {'concept': 'common name'}] ['Igor Alexandrovich Putin', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Kirill_Shamalov property:spouse ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Kirill Shamalov. Could you tell me the answer for that?
(Q23664531,P26,c(Q502895))
Q23664531
['Q23664531', 'P26', {'concept': 'Q502895'}]
['Kirill Shamalov', 'spouse', {'concept': 'common name'}]
[]
Q19364345
SYSTEM
Katerina Tikhonova
Q19364345
(Q23664531,P26,c(Q502895))
action filter_type
action find
entity Q23664531
relation P26
type Q502895
[ANSWER] is married to that one
['Q23664531', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q23664531 property:P26 ?o . ?o rdf:type ontology:Q502895 }
Katerina Tikhonova
Katerina Tikhonova is married to that one
Katerina Tikhonova
action filter_type
action find
entity Kirill Shamalov
relation spouse
type common name
['Kirill Shamalov', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Kirill_Shamalov property:spouse ?o . ?o rdf:type ontology:common_name }
[]