Simple Question (Direct)
Simple Question
Q3695198
P136
Q1792379
USER
What can be considered as category for Cosmonaut ?
(Q3695198,P136,c(Q1792379))
action filter_type
action find
entity Q3695198
relation P136
type Q1792379
['Q3695198', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1792379 . resource:Q3695198 property:P136 ?x }
Cosmonaut
action filter_type
action find
entity Cosmonaut
relation genre
type art genre
['Cosmonaut', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:art_genre . resource:Cosmonaut property:genre ?x }
[]
art genre
Q2975633
SYSTEM
coming-of-age story
Q2975633
(Q3695198,P136,c(Q1792379))
action filter_type
action find
entity Q3695198
relation P136
type Q1792379
The [ANSWER] can be considered as category for Cosmonaut
['Q3695198', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1792379 . resource:Q3695198 property:P136 ?x }
coming-of-age story
The coming-of-age story can be considered as category for Cosmonaut
coming-of-age story
action filter_type
action find
entity Cosmonaut
relation genre
type art genre
['Cosmonaut', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:art_genre . resource:Cosmonaut property:genre ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3695198
P364
Q34770
USER
Which language was used originally for the creation of that work of art ?
(Q2975633,P364,c(Q34770))
action filter_type
action find
entity Q3695198
relation P364
type Q34770
['Q2975633', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { resource:Q3695198 property:P364 ?u . ?u rdf:type ontology:Q34770 }
Cosmonaut
action filter_type
action find
entity Cosmonaut
relation original language of work
type language
['coming-of-age story', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { resource:Cosmonaut property:original_language_of_work ?u . ?u rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q2975633,P364,c(Q34770))
action filter_type
action find
entity Q3695198
relation P364
type Q34770
[ANSWER] was used originally for the creation of that work of art
['Q2975633', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { resource:Q3695198 property:P364 ?u . ?u rdf:type ontology:Q34770 }
Italian
Italian was used originally for the creation of that work of art
Italian
action filter_type
action find
entity Cosmonaut
relation original language of work
type language
['coming-of-age story', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { resource:Cosmonaut property:original_language_of_work ?u . ?u rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P282
Q8192 Q34770
USER
How many languages are around the same number of writing systems the writing system of as that language ?
(c(Q34770),P282,c(Q8192))
action count
action approx
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_type
action find
entity Q652
relation P282
type Q34770
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?v ) WHERE { ?b rdf:type ontology:Q34770 . ?a rdf:type ontology:Q8192 . ?b property:P282 ?a } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Q652 property:P282 ?m . ?m rdf:type ontology:Q34770 } } . FILTER ( ?v = ?w ) }
action count
action approx
action find_tuple_counts
relation writing system
type language
type writing system
action count
action filter_type
action find
entity Italian
relation writing system
type language
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?v ) WHERE { ?b rdf:type ontology:language . ?a rdf:type ontology:writing_system . ?b property:writing_system ?a } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Italian property:writing_system ?m . ?m rdf:type ontology:language } } . FILTER ( ?v = ?w ) }
[]
writing system language
SYSTEM
56
Q7102906 Q20832 Q29572 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q35470 Q13211 Q36741 Q35499 Q35668 Q8785 Q35726 Q1321 Q21161949 Q25167 Q33251 Q18130932 Q21161942 Q1639124 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q2705672 Q33879 Q7362035 Q36795 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q20972034 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q36790 Q1860 Q36116 Q36751 Q29977 Q36464 Q837985 Q447117 Q7511561 Q652 Q33982
(c(Q34770),P282,c(Q8192))
action count
action approx
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_type
action find
entity Q652
relation P282
type Q34770
[ANSWER]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?v ) WHERE { ?b rdf:type ontology:Q34770 . ?a rdf:type ontology:Q8192 . ?b property:P282 ?a } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Q652 property:P282 ?m . ?m rdf:type ontology:Q34770 } } . FILTER ( ?v = ?w ) }
Orizaba Nahuatl Wailaki language Avestan Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Elamite language Ruthenian Polabian Old Church Slavonic Hittite Armenian Etruscan Spanish Serbian written in Latin script Bokmål Church Slavonic Traditional Chinese Serbian written in Cyrillic Slavoserbian Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Paeonian language Pangasinan language Roman Khowar Tartessian Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Classic Greek Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish Sumerian English Middle Irish Phrygian language Gaulish Nivkh language Middle High German Old Egyptian Sierra Puebla Nahuatl Italian Low Prussian
56
action count
action approx
action find_tuple_counts
relation writing system
type language
type writing system
action count
action filter_type
action find
entity Italian
relation writing system
type language
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?v ) WHERE { ?b rdf:type ontology:language . ?a rdf:type ontology:writing_system . ?b property:writing_system ?a } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { resource:Italian property:writing_system ?m . ?m rdf:type ontology:language } } . FILTER ( ?v = ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q13211
P282
Q2001982 Q9779 Q34770
USER
Which languages utilizes approximately the same number of notations and alphabets as the writing system as Ruthenian ?
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q13211
relation P282
type Q2001982
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { resource:Q13211 property:P282 ?g . { ?g rdf:type ?u . VALUES ( ?u ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } } } } . FILTER ( ?t = ?s ) . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?t ) WHERE { { ?i property:P282 ?v . ?i rdf:type ontology:Q34770 . ?v rdf:type ontology:Q9779 } UNION { ?i property:P282 ?v . ?i rdf:type ontology:Q34770 . ?v rdf:type ontology:Q2001982 } } GROUP BY ?i } }
Ruthenian
action approx
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Ruthenian
relation writing system
type notation
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { resource:Ruthenian property:writing_system ?g . { ?g rdf:type ?u . VALUES ( ?u ) { ( ontology:notation ) ( ontology:alphabet ) } } } } . FILTER ( ?t = ?s ) . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?t ) WHERE { { ?i property:writing_system ?v . ?i rdf:type ontology:language . ?v rdf:type ontology:alphabet } UNION { ?i property:writing_system ?v . ?i rdf:type ontology:language . ?v rdf:type ontology:notation } } GROUP BY ?i } }
[]
notation alphabet language
Q182695 Q35499 Q33251
SYSTEM
Late Old Japanese, Old Church Slavonic, Church Slavonic
Q182695 Q35470 Q13211 Q35499 Q33251 Q21161942 Q1639124 Q2705672 Q36795 Q20972034 Q36790 Q36751 Q36464 Q652
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q13211
relation P282
type Q2001982
type Q9779
[ANSWERS] utilize approximately the same number of notations and alphabets as the writing system as Ruthenian
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { resource:Q13211 property:P282 ?g . { ?g rdf:type ?u . VALUES ( ?u ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } } } } . FILTER ( ?t = ?s ) . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?t ) WHERE { { ?i property:P282 ?v . ?i rdf:type ontology:Q34770 . ?v rdf:type ontology:Q9779 } UNION { ?i property:P282 ?v . ?i rdf:type ontology:Q34770 . ?v rdf:type ontology:Q2001982 } } GROUP BY ?i } }
Late Old Japanese Elamite language Ruthenian Old Church Slavonic Church Slavonic Serbian written in Cyrillic Slavoserbian Paeonian language Tartessian Classic Greek Sumerian Phrygian language Nivkh language Italian
Late Old Japanese, Old Church Slavonic and Church Slavonic utilize approximately the same number of notations and alphabets as the writing system as Ruthenian
Late Old Japanese Old Church Slavonic Church Slavonic
action approx
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Ruthenian
relation writing system
type notation
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { resource:Ruthenian property:writing_system ?g . { ?g rdf:type ?u . VALUES ( ?u ) { ( ontology:notation ) ( ontology:alphabet ) } } } } . FILTER ( ?t = ?s ) . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?t ) WHERE { { ?i property:writing_system ?v . ?i rdf:type ontology:language . ?v rdf:type ontology:alphabet } UNION { ?i property:writing_system ?v . ?i rdf:type ontology:language . ?v rdf:type ontology:notation } } GROUP BY ?i } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q36795
P282
Q2001982 Q9779 Q34770
USER
And how about Tartessian?
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q36795
relation P282
type Q2001982
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Q36795 property:P282 ?t . { ?t rdf:type ?m . VALUES ( ?m ) { ( ontology:Q9779 ) ( ontology:Q2001982 ) } } } } . FILTER ( ?l = ?j ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?r WHERE { { ?r property:P282 ?b . ?r rdf:type ontology:Q34770 . ?b rdf:type ontology:Q2001982 } UNION { ?b rdf:type ontology:Q9779 . ?r rdf:type ontology:Q34770 . ?r property:P282 ?b } } GROUP BY ?r } }
Tartessian
action approx
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Tartessian
relation writing system
type notation
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Tartessian property:writing_system ?t . { ?t rdf:type ?m . VALUES ( ?m ) { ( ontology:alphabet ) ( ontology:notation ) } } } } . FILTER ( ?l = ?j ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?r WHERE { { ?r property:writing_system ?b . ?r rdf:type ontology:language . ?b rdf:type ontology:notation } UNION { ?b rdf:type ontology:alphabet . ?r rdf:type ontology:language . ?r property:writing_system ?b } } GROUP BY ?r } }
[]
notation alphabet language
Q182695 Q35499 Q33251
SYSTEM
Late Old Japanese, Old Church Slavonic, Church Slavonic
Q182695 Q35470 Q13211 Q35499 Q33251 Q21161942 Q1639124 Q2705672 Q36795 Q20972034 Q36790 Q36751 Q36464 Q652
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q36795
relation P282
type Q2001982
type Q9779
[ANSWERS]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Q36795 property:P282 ?t . { ?t rdf:type ?m . VALUES ( ?m ) { ( ontology:Q9779 ) ( ontology:Q2001982 ) } } } } . FILTER ( ?l = ?j ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?r WHERE { { ?r property:P282 ?b . ?r rdf:type ontology:Q34770 . ?b rdf:type ontology:Q2001982 } UNION { ?b rdf:type ontology:Q9779 . ?r rdf:type ontology:Q34770 . ?r property:P282 ?b } } GROUP BY ?r } }
Late Old Japanese Elamite language Ruthenian Old Church Slavonic Church Slavonic Serbian written in Cyrillic Slavoserbian Paeonian language Tartessian Classic Greek Sumerian Phrygian language Nivkh language Italian
Late Old Japanese Old Church Slavonic Church Slavonic
action approx
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Tartessian
relation writing system
type notation
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Tartessian property:writing_system ?t . { ?t rdf:type ?m . VALUES ( ?m ) { ( ontology:alphabet ) ( ontology:notation ) } } } } . FILTER ( ?l = ?j ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?r WHERE { { ?r property:writing_system ?b . ?r rdf:type ontology:language . ?b rdf:type ontology:notation } UNION { ?b rdf:type ontology:alphabet . ?r rdf:type ontology:language . ?r property:writing_system ?b } } GROUP BY ?r } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q182695 Q35499 Q33251
P1412
Q502895
USER
Which people speaks those languages ?
(c(Q502895),P1412,Q182695) (c(Q502895),P1412,Q35499) (c(Q502895),P1412,Q33251)
action filter_type
action find_reverse
entity prev_answer
relation P1412
type Q502895
[{'concept': 'Q502895'}, 'P1412', 'Q182695'] [{'concept': 'Q502895'}, 'P1412', 'Q35499'] [{'concept': 'Q502895'}, 'P1412', 'Q33251']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . VALUES ( ?a ) { ( resource:Q182695 ) ( resource:Q35470 ) ( resource:Q13211 ) } . ?t property:P1412 ?a }
Late Old Japanese Old Church Slavonic Church Slavonic
action filter_type
action find_reverse
entity prev_answer
relation languages spoken, written or signed
type common name
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Late Old Japanese'] [{'concept': 'common name'}, 'languages spoken, written or signed', 'Old Church Slavonic'] [{'concept': 'common name'}, 'languages spoken, written or signed', 'Church Slavonic']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . VALUES ( ?a ) { ( resource:Late_Old_Japanese ) ( resource:Elamite_language ) ( resource:Ruthenian ) } . ?t property:languages_spoken,_written_or_signed ?a }
[]
common name
Q723304 Q1146725 Q451991
SYSTEM
Gregory Tsamblak, Constantine of Preslav, Ariwara no Narihira
Q451991 Q650558 Q723304 Q1146725 Q3917646
(c(Q502895),P1412,Q182695) (c(Q502895),P1412,Q35499) (c(Q502895),P1412,Q33251)
action filter_type
action find_reverse
entity prev_answer
relation P1412
type Q502895
[ANSWERS] speak those languages
[{'concept': 'Q502895'}, 'P1412', 'Q182695'] [{'concept': 'Q502895'}, 'P1412', 'Q35499'] [{'concept': 'Q502895'}, 'P1412', 'Q33251']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . VALUES ( ?a ) { ( resource:Q182695 ) ( resource:Q35470 ) ( resource:Q13211 ) } . ?t property:P1412 ?a }
Ariwara no Narihira John Exarch Gregory Tsamblak Constantine of Preslav Kyrylo Stavrovetsky
Gregory Tsamblak, Constantine of Preslav and Ariwara no Narihira speak those languages
Gregory Tsamblak Constantine of Preslav Ariwara no Narihira
action filter_type
action find_reverse
entity prev_answer
relation languages spoken, written or signed
type common name
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Late Old Japanese'] [{'concept': 'common name'}, 'languages spoken, written or signed', 'Old Church Slavonic'] [{'concept': 'common name'}, 'languages spoken, written or signed', 'Church Slavonic']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . VALUES ( ?a ) { ( resource:Late_Old_Japanese ) ( resource:Elamite_language ) ( resource:Ruthenian ) } . ?t property:languages_spoken,_written_or_signed ?a }
[]
Clarification
Simple Question|Single Entity|Indirect
Q451991
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q451991,P27,c(Q15617994))
action filter_type
action find
entity Q451991
relation P27
type Q15617994
['Q451991', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q451991 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Ariwara no Narihira
action filter_type
action find
entity Ariwara no Narihira
relation country of citizenship
type designation for an administrative territorial entity
['Ariwara no Narihira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Ariwara_no_Narihira property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q451991
SYSTEM
Did you mean Ariwara no Narihira ?
Q723304 Q1146725 Q451991
(Q723304,P27,c(Q15617994)) (Q1146725,P27,c(Q15617994)) (Q451991,P27,c(Q15617994))
[ANSWER]
['Q723304', 'P27', {'concept': 'Q15617994'}] ['Q1146725', 'P27', {'concept': 'Q15617994'}] ['Q451991', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q451991 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Gregory Tsamblak Constantine of Preslav Ariwara no Narihira
Did you mean Ariwara no Narihira ?
Ariwara no Narihira
['Gregory Tsamblak', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Constantine of Preslav', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Ariwara no Narihira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Ariwara_no_Narihira property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q451991,P27,c(Q15617994))
['Q451991', 'P27', {'concept': 'Q15617994'}]
['Ariwara no Narihira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
[]
Q17
SYSTEM
Japan
Q17
(Q451991,P27,c(Q15617994))
action filter_type
action find
entity Q451991
relation P27
type Q15617994
The [ANSWER] is that person a civilian of
['Q451991', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q451991 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Japan
The Japan is that person a civilian of
Japan
action filter_type
action find
entity Ariwara no Narihira
relation country of citizenship
type designation for an administrative territorial entity
['Ariwara no Narihira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Ariwara_no_Narihira property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q17 Q15196436 Q117063
P530
Q1048835
USER
Does that administrative territory have diplomatic relations with Bancal, Cavite and Padornelo ?
(Q17,P530,Q15196436) (Q17,P530,Q117063)
action is_in
entity Q17
action intersection
action find_reverse
entity Q15196436
relation P530
action find_reverse
entity Q117063
relation P530
['Q17', 'P530', 'Q15196436'] ['Q17', 'P530', 'Q117063']
ASK WHERE { resource:Q17 property:P530 resource:Q15196436 . resource:Q17 property:P530 resource:Q117063 }
Japan Bancal, Cavite Padornelo
action is_in
entity Japan
action intersection
action find_reverse
entity Bancal, Cavite
relation diplomatic relation
action find_reverse
entity Padornelo
relation diplomatic relation
['Japan', 'diplomatic relation', 'Bancal, Cavite'] ['Japan', 'diplomatic relation', 'Padornelo']
ASK WHERE { resource:Japan property:diplomatic_relation resource:Bancal,_Cavite . resource:Japan property:diplomatic_relation resource:Padornelo }
[]
political territorial entity
SYSTEM
NO
(Q17,P530,Q15196436) (Q17,P530,Q117063)
action is_in
entity Q17
action intersection
action find_reverse
entity Q15196436
relation P530
action find_reverse
entity Q117063
relation P530
[ANSWER]
['Q17', 'P530', 'Q15196436'] ['Q17', 'P530', 'Q117063']
ASK WHERE { resource:Q17 property:P530 resource:Q15196436 . resource:Q17 property:P530 resource:Q117063 }
No
action is_in
entity Japan
action intersection
action find_reverse
entity Bancal, Cavite
relation diplomatic relation
action find_reverse
entity Padornelo
relation diplomatic relation
['Japan', 'diplomatic relation', 'Bancal, Cavite'] ['Japan', 'diplomatic relation', 'Padornelo']
ASK WHERE { resource:Japan property:diplomatic_relation resource:Bancal,_Cavite . resource:Japan property:diplomatic_relation resource:Padornelo }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17
P47
Q7275
USER
Which state does Japan share a border with ?
(c(Q7275),P47,Q17)
action filter_type
action find_reverse
entity Q17
relation P47
type Q7275
[{'concept': 'Q7275'}, 'P47', 'Q17']
SELECT DISTINCT ?b WHERE { ?b property:P47 resource:Q17 . ?b rdf:type ontology:Q7275 }
Japan
action filter_type
action find_reverse
entity Japan
relation shares border with
type state
[{'concept': 'state'}, 'shares border with', 'Japan']
SELECT DISTINCT ?b WHERE { ?b property:shares_border_with resource:Japan . ?b rdf:type ontology:state }
[]
state
Q15180
SYSTEM
Soviet Union
Q15180
(c(Q7275),P47,Q17)
action filter_type
action find_reverse
entity Q17
relation P47
type Q7275
Japan shares a border with [ANSWER]
[{'concept': 'Q7275'}, 'P47', 'Q17']
SELECT DISTINCT ?b WHERE { ?b property:P47 resource:Q17 . ?b rdf:type ontology:Q7275 }
Soviet Union
Japan shares a border with Soviet Union
Soviet Union
action filter_type
action find_reverse
entity Japan
relation shares border with
type state
[{'concept': 'state'}, 'shares border with', 'Japan']
SELECT DISTINCT ?b WHERE { ?b property:shares_border_with resource:Japan . ?b rdf:type ontology:state }
[]