Simple Question (Direct)
Simple Question
Q936736
P1344
Q15900616
USER
Which event sequences did Steinar Johansen take part in ?
(Q936736,P1344,c(Q15900616))
action filter_type
action find
entity Q936736
relation P1344
type Q15900616
['Q936736', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?q WHERE { resource:Q936736 property:P1344 ?q . ?q rdf:type ontology:Q15900616 }
Steinar Johansen
action filter_type
action find
entity Steinar Johansen
relation participant of
type event sequence
['Steinar Johansen', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?q WHERE { resource:Steinar_Johansen property:participant_of ?q . ?q rdf:type ontology:event_sequence }
[]
event sequence
Q9664 Q9663 Q9660
SYSTEM
1998 Winter Olympics, 1994 Winter Olympics, 1992 Winter Olympics
Q9664 Q9663 Q9660
(Q936736,P1344,c(Q15900616))
action filter_type
action find
entity Q936736
relation P1344
type Q15900616
Steinar Johansen took in part in [ANSWERS]
['Q936736', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?q WHERE { resource:Q936736 property:P1344 ?q . ?q rdf:type ontology:Q15900616 }
1998 Winter Olympics 1994 Winter Olympics 1992 Winter Olympics
Steinar Johansen took in part in 1998 Winter Olympics, 1994 Winter Olympics and 1992 Winter Olympics
1998 Winter Olympics 1994 Winter Olympics 1992 Winter Olympics
action filter_type
action find
entity Steinar Johansen
relation participant of
type event sequence
['Steinar Johansen', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?q WHERE { resource:Steinar_Johansen property:participant_of ?q . ?q rdf:type ontology:event_sequence }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9664
P17
Q15617994
USER
Which administrative territory is 1998 Winter Olympics situated in ?
(Q9664,P17,c(Q15617994))
action filter_type
action find
entity Q9664
relation P17
type Q15617994
['Q9664', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q9664 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
1998 Winter Olympics
action filter_type
action find
entity 1998 Winter Olympics
relation country
type designation for an administrative territorial entity
['1998 Winter Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:1998_Winter_Olympics property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q9664,P17,c(Q15617994))
action filter_type
action find
entity Q9664
relation P17
type Q15617994
1998 Winter Olympics is situated in [ANSWER]
['Q9664', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q9664 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Japan
1998 Winter Olympics is situated in Japan
Japan
action filter_type
action find
entity 1998 Winter Olympics
relation country
type designation for an administrative territorial entity
['1998 Winter Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:1998_Winter_Olympics property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q12479205
Q15617994
USER
And also tell me about Ciomas?
(Q12479205,P17,c(Q15617994))
action filter_type
action find
entity Q12479205
relation P17
type Q15617994
['Q12479205', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q12479205 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Ciomas
action filter_type
action find
entity Ciomas
relation country
type designation for an administrative territorial entity
['Ciomas', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Ciomas property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q252
SYSTEM
Indonesia
Q252
(Q12479205,P17,c(Q15617994))
action filter_type
action find
entity Q12479205
relation P17
type Q15617994
[ANSWER]
['Q12479205', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q12479205 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Indonesia
Indonesia
action filter_type
action find
entity Ciomas
relation country
type designation for an administrative territorial entity
['Ciomas', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Ciomas property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q252 Q614267
P47
Q1048835
USER
Does Recreio share border with that administrative territory ?
(Q252,P47,Q614267)
action is_in
entity Q614267
action find
entity Q252
relation P47
['Q252', 'P47', 'Q614267']
ASK WHERE { resource:Q252 property:P47 resource:Q614267 }
Indonesia Recreio
action is_in
entity Recreio
action find
entity Indonesia
relation shares border with
['Indonesia', 'shares border with', 'Recreio']
ASK WHERE { resource:Indonesia property:shares_border_with resource:Recreio }
[]
political territorial entity
SYSTEM
NO
(Q252,P47,Q614267)
action is_in
entity Q614267
action find
entity Q252
relation P47
[ANSWER]
['Q252', 'P47', 'Q614267']
ASK WHERE { resource:Q252 property:P47 resource:Q614267 }
No
action is_in
entity Recreio
action find
entity Indonesia
relation shares border with
['Indonesia', 'shares border with', 'Recreio']
ASK WHERE { resource:Indonesia property:shares_border_with resource:Recreio }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q252 Q34754
P35
Q502895
USER
How many people are elected as the head of state of Indonesia or Somaliland ?
(Q252,P35,c(Q502895)) (Q34754,P35,c(Q502895))
action count
action union
action filter_type
action find
entity Q252
relation P35
type Q502895
action filter_type
action find
entity Q34754
relation P35
type Q502895
['Q252', 'P35', {'concept': 'Q502895'}] ['Q34754', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?d property:P35 ?f . VALUES ( ?d ) { ( resource:Q252 ) ( resource:Q34754 ) } }
Indonesia Somaliland
action count
action union
action filter_type
action find
entity Indonesia
relation head of state
type common name
action filter_type
action find
entity Somaliland
relation head of state
type common name
['Indonesia', 'head of state', {'concept': 'common name'}] ['Somaliland', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?d property:head_of_state ?f . VALUES ( ?d ) { ( resource:Indonesia ) ( resource:Somaliland ) } }
[]
common name
SYSTEM
8
Q57405 Q76179 Q3318231 Q76156 Q380187 Q76127 Q76167 Q44819
(Q252,P35,c(Q502895)) (Q34754,P35,c(Q502895))
action count
action union
action filter_type
action find
entity Q252
relation P35
type Q502895
action filter_type
action find
entity Q34754
relation P35
type Q502895
[ANSWER]
['Q252', 'P35', {'concept': 'Q502895'}] ['Q34754', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?d property:P35 ?f . VALUES ( ?d ) { ( resource:Q252 ) ( resource:Q34754 ) } }
Susilo Bambang Yudhoyono Megawati Sukarnoputri Joko Widodo Bacharuddin Jusuf Habibie Ahmed Mahamoud Silanyo Sukarno Abdurrahman Wahid Suharto
8
action count
action union
action filter_type
action find
entity Indonesia
relation head of state
type common name
action filter_type
action find
entity Somaliland
relation head of state
type common name
['Indonesia', 'head of state', {'concept': 'common name'}] ['Somaliland', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { ?d property:head_of_state ?f . VALUES ( ?d ) { ( resource:Indonesia ) ( resource:Somaliland ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q252
P20
Q502895
USER
Which people have Indonesia as place of death ?
(c(Q502895),P20,Q252)
action filter_type
action find_reverse
entity Q252
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q252']
SELECT DISTINCT ?y WHERE { ?y property:P20 resource:Q252 . ?y rdf:type ontology:Q502895 }
Indonesia
action filter_type
action find_reverse
entity Indonesia
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Indonesia']
SELECT DISTINCT ?y WHERE { ?y property:place_of_death resource:Indonesia . ?y rdf:type ontology:common_name }
[]
common name
Q19301366 Q6056702 Q1598180
SYSTEM
Oriol Canals Boix, Ami Priyono, Heinrich Leven
Q1598180 Q12483125 Q5431566 Q19301366 Q129689 Q3739515 Q12497345 Q8061828 Q6188585 Q6056702 Q12482370 Q13534328 Q12499346 Q7531493 Q14404735 Q7562833 Q4201161 Q12480963 Q4258815
(c(Q502895),P20,Q252)
action filter_type
action find_reverse
entity Q252
relation P20
type Q502895
[ANSWERS] have Indonesia as place of death
[{'concept': 'Q502895'}, 'P20', 'Q252']
SELECT DISTINCT ?y WHERE { ?y property:P20 resource:Q252 . ?y rdf:type ontology:Q502895 }
Heinrich Leven Fritz G. Schadt Fakih Usman Oriol Canals Boix Soeroso Văn Phụng Masjkur Yusak Pakage John Sten Ami Priyono El Tari Ignatius Joseph Kasimo Hendrowahyono Muhammad Dahlan Sisworo Gautama Putra Saifuddin Zuhri Sophan Sophiaan Mas Mansoer Darussalam Tjokorda Gde Raka Soekawati
Oriol Canals Boix, Ami Priyono and Heinrich Leven have Indonesia as place of death
Oriol Canals Boix Ami Priyono Heinrich Leven
action filter_type
action find_reverse
entity Indonesia
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Indonesia']
SELECT DISTINCT ?y WHERE { ?y property:place_of_death resource:Indonesia . ?y rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1598180
P140
Q879146
USER
Which Christian denomination does that person relate to ?
(Q1598180,P140,c(Q879146))
action filter_type
action find
entity Q1598180
relation P140
type Q879146
['Q1598180', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q879146 . resource:Q1598180 property:P140 ?j }
Heinrich Leven
action filter_type
action find
entity Heinrich Leven
relation religion
type Christian denomination
['Heinrich Leven', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Christian_denomination . resource:Heinrich_Leven property:religion ?j }
[]
Christian denomination
Clarification for simple ques.
Q19301366
SYSTEM
Did you mean Oriol Canals Boix ?
Q19301366 Q6056702 Q1598180
(Q19301366,P140,c(Q879146)) (Q6056702,P140,c(Q879146)) (Q1598180,P140,c(Q879146))
[ANSWER]
['Q19301366', 'P140', {'concept': 'Q879146'}] ['Q6056702', 'P140', {'concept': 'Q879146'}] ['Q1598180', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q879146 . resource:Q1598180 property:P140 ?j }
Oriol Canals Boix Ami Priyono Heinrich Leven
Did you mean Oriol Canals Boix ?
Oriol Canals Boix
['Oriol Canals Boix', 'religion', {'concept': 'Christian denomination'}] ['Ami Priyono', 'religion', {'concept': 'Christian denomination'}] ['Heinrich Leven', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Christian_denomination . resource:Heinrich_Leven property:religion ?j }
[]
Simple Question (Coreferenced)
USER
No, I meant Heinrich Leven. Could you tell me the answer for that?
(Q1598180,P140,c(Q879146))
Q1598180
['Q1598180', 'P140', {'concept': 'Q879146'}]
['Heinrich Leven', 'religion', {'concept': 'Christian denomination'}]
[]
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q1598180,P140,c(Q879146))
action filter_type
action find
entity Q1598180
relation P140
type Q879146
That person relates to [ANSWER]
['Q1598180', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q879146 . resource:Q1598180 property:P140 ?j }
Roman Catholic Church
That person relates to Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Heinrich Leven
relation religion
type Christian denomination
['Heinrich Leven', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Christian_denomination . resource:Heinrich_Leven property:religion ?j }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3854325 Q17
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relations with Japan and are Melvin Sanders an inhabitant of ?
AND((Q17,P530,c(Q15617994)), (Q3854325,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q17
relation P530
action find
entity Q3854325
relation P27
type Q15617994
{'AND': [['Q17', 'P530', {'concept': 'Q15617994'}], ['Q3854325', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q17 property:P530 ?d . resource:Q3854325 property:P27 ?d }
Melvin Sanders Japan
action filter_type
action intersection
action find
entity Japan
relation diplomatic relation
action find
entity Melvin Sanders
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Melvin Sanders', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Japan property:diplomatic_relation ?d . resource:Melvin_Sanders property:country_of_citizenship ?d }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q17,P530,c(Q15617994)), (Q3854325,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q17
relation P530
action find
entity Q3854325
relation P27
type Q15617994
[ANSWER] have diplomatic relations with Japan and are Melvin Sanders an inhabitant of
{'AND': [['Q17', 'P530', {'concept': 'Q15617994'}], ['Q3854325', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q17 property:P530 ?d . resource:Q3854325 property:P27 ?d }
United States of America
United States of America have diplomatic relations with Japan and are Melvin Sanders an inhabitant of
United States of America
action filter_type
action intersection
action find
entity Japan
relation diplomatic relation
action find
entity Melvin Sanders
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Melvin Sanders', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Japan property:diplomatic_relation ?d . resource:Melvin_Sanders property:country_of_citizenship ?d }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic associations with around 76 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 76
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?n ) WHERE { ?x property:P530 ?i . ?x rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?n = 76 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 76
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?n ) WHERE { ?x property:diplomatic_relation ?i . ?x rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?n = 76 ) }
[]
designation for an administrative territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 76
[ANSWER] have diplomatic associations with around 76 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?n ) WHERE { ?x property:P530 ?i . ?x rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?n = 76 ) }
Australia
Australia have diplomatic associations with around 76 administrative territories
Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 76
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?n ) WHERE { ?x property:diplomatic_relation ?i . ?x rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?n = 76 ) }
[]