Simple Question (Direct)
Simple Question
Q705111
P20
Q515
USER
Where did the demise of Joseph Pholien occur ?
(Q705111,P20,c(Q515))
action filter_type
action find
entity Q705111
relation P20
type Q515
['Q705111', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { resource:Q705111 property:P20 ?w . ?w rdf:type ontology:Q515 }
Joseph Pholien
action filter_type
action find
entity Joseph Pholien
relation place of death
type city
['Joseph Pholien', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { resource:Joseph_Pholien property:place_of_death ?w . ?w rdf:type ontology:city }
[]
city
Q9005
SYSTEM
Brussels
Q9005
(Q705111,P20,c(Q515))
action filter_type
action find
entity Q705111
relation P20
type Q515
The demise of Joseph Pholien occurred in [ANSWER]
['Q705111', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { resource:Q705111 property:P20 ?w . ?w rdf:type ontology:Q515 }
Brussels
The demise of Joseph Pholien occurred in Brussels
Brussels
action filter_type
action find
entity Joseph Pholien
relation place of death
type city
['Joseph Pholien', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { resource:Joseph_Pholien property:place_of_death ?w . ?w rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q705111
P102
Q7210356
USER
Which party is Joseph Pholien affiliated with ?
(Q705111,P102,c(Q7210356))
action filter_type
action find
entity Q705111
relation P102
type Q7210356
['Q705111', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q7210356 . resource:Q705111 property:P102 ?c }
Joseph Pholien
action filter_type
action find
entity Joseph Pholien
relation member of political party
type political organization
['Joseph Pholien', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_organization . resource:Joseph_Pholien property:member_of_political_party ?c }
[]
political organization
Q3366715
SYSTEM
Christian Social Party
Q3366715
(Q705111,P102,c(Q7210356))
action filter_type
action find
entity Q705111
relation P102
type Q7210356
Joseph Pholien is affiliated with [ANSWER]
['Q705111', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q7210356 . resource:Q705111 property:P102 ?c }
Christian Social Party
Joseph Pholien is affiliated with Christian Social Party
Christian Social Party
action filter_type
action find
entity Joseph Pholien
relation member of political party
type political organization
['Joseph Pholien', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_organization . resource:Joseph_Pholien property:member_of_political_party ?c }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6324192
Q7210356
USER
And what about K. V. Thomas?
(Q6324192,P102,c(Q7210356))
action filter_type
action find
entity Q6324192
relation P102
type Q7210356
['Q6324192', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q7210356 . resource:Q6324192 property:P102 ?x }
K. V. Thomas
action filter_type
action find
entity K. V. Thomas
relation member of political party
type political organization
['K. V. Thomas', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_organization . resource:K._V._Thomas property:member_of_political_party ?x }
[]
political organization
Q10225
SYSTEM
Indian National Congress
Q10225
(Q6324192,P102,c(Q7210356))
action filter_type
action find
entity Q6324192
relation P102
type Q7210356
[ANSWER]
['Q6324192', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q7210356 . resource:Q6324192 property:P102 ?x }
Indian National Congress
Indian National Congress
action filter_type
action find
entity K. V. Thomas
relation member of political party
type political organization
['K. V. Thomas', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_organization . resource:K._V._Thomas property:member_of_political_party ?x }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q22338364 Q3366715
P17
Q15617994
USER
Which administrative territories are Christian Social Party or Vecstelpe present in ?
OR((Q3366715,P17,c(Q15617994)), (Q22338364,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3366715
relation P17
action find
entity Q22338364
relation P17
type Q15617994
{'OR': [['Q3366715', 'P17', {'concept': 'Q15617994'}], ['Q22338364', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q3366715 property:P17 ?y } UNION { resource:Q22338364 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Vecstelpe Christian Social Party
action filter_type
action union
action find
entity Christian Social Party
relation country
action find
entity Vecstelpe
relation country
type designation for an administrative territorial entity
{'OR': [['Christian Social Party', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Vecstelpe', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Christian_Social_Party property:country ?y } UNION { resource:Vecstelpe property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q211
SYSTEM
Belgium, Latvia
Q31 Q211
OR((Q3366715,P17,c(Q15617994)), (Q22338364,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3366715
relation P17
action find
entity Q22338364
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q3366715', 'P17', {'concept': 'Q15617994'}], ['Q22338364', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q3366715 property:P17 ?y } UNION { resource:Q22338364 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Belgium Latvia
Which administrative territories are Christian Social Party or Vecstelpe present in
Belgium Latvia
action filter_type
action union
action find
entity Christian Social Party
relation country
action find
entity Vecstelpe
relation country
type designation for an administrative territorial entity
{'OR': [['Christian Social Party', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Vecstelpe', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Christian_Social_Party property:country ?y } UNION { resource:Vecstelpe property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1650724
P530
Q1048835
USER
Are Piedratajada known to have diplomatic connections with those administrative territories ?
(Q1650724,P530,Q31) (Q1650724,P530,Q211)
action is_in
entity prev_answer
action find
entity Q1650724
relation P530
['Q1650724', 'P530', 'Q31'] ['Q1650724', 'P530', 'Q211']
ASK WHERE { VALUES ( ?i ) { ( resource:Q31 ) ( resource:Q211 ) } . resource:Q1650724 property:P530 ?i }
Piedratajada
action is_in
entity prev_answer
action find
entity Piedratajada
relation diplomatic relation
['Piedratajada', 'diplomatic relation', 'Belgium'] ['Piedratajada', 'diplomatic relation', 'Latvia']
ASK WHERE { VALUES ( ?i ) { ( resource:Belgium ) ( resource:Latvia ) } . resource:Piedratajada property:diplomatic_relation ?i }
[]
political territorial entity
SYSTEM
NO
(Q1650724,P530,Q31) (Q1650724,P530,Q211)
action is_in
entity prev_answer
action find
entity Q1650724
relation P530
[ANSWER]
['Q1650724', 'P530', 'Q31'] ['Q1650724', 'P530', 'Q211']
ASK WHERE { VALUES ( ?i ) { ( resource:Q31 ) ( resource:Q211 ) } . resource:Q1650724 property:P530 ?i }
No
action is_in
entity prev_answer
action find
entity Piedratajada
relation diplomatic relation
['Piedratajada', 'diplomatic relation', 'Belgium'] ['Piedratajada', 'diplomatic relation', 'Latvia']
ASK WHERE { VALUES ( ?i ) { ( resource:Belgium ) ( resource:Latvia ) } . resource:Piedratajada property:diplomatic_relation ?i }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1000069
P609
Q515 Q83620 Q34442
USER
Which cities are the terminus locations of approximately the same number of thoroughfares or roads as Lovosice ?
(c(Q83620)|c(Q34442),P609,c(Q515))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q1000069
relation P609
type Q83620
type Q34442
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?m ) WHERE { { ?e rdf:type ontology:Q515 . ?w rdf:type ontology:Q83620 . ?w property:P609 ?e } UNION { ?w property:P609 ?e . ?e rdf:type ontology:Q515 . ?w rdf:type ontology:Q34442 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { { ?h rdf:type ontology:Q83620 } UNION { ?h rdf:type ontology:Q34442 } } . ?h property:P609 resource:Q1000069 } } . FILTER ( ?m = ?q ) }
Lovosice
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
action count
action filter_multi_types
action find_reverse
entity Lovosice
relation terminus location
type thoroughfare
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?m ) WHERE { { ?e rdf:type ontology:city . ?w rdf:type ontology:thoroughfare . ?w property:terminus_location ?e } UNION { ?w property:terminus_location ?e . ?e rdf:type ontology:city . ?w rdf:type ontology:road } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { { ?h rdf:type ontology:thoroughfare } UNION { ?h rdf:type ontology:road } } . ?h property:terminus_location resource:Lovosice } } . FILTER ( ?m = ?q ) }
[]
city thoroughfare road
Q1899 Q42622 Q16506
SYSTEM
Kyiv, Suzhou, České Budějovice
Q8652 Q349982 Q601254 Q425996 Q756581 Q320950 Q869037 Q16506 Q363479 Q1027604 Q2092257 Q16959 Q68481 Q851155 Q181276 Q249007 Q341777 Q5869 Q16520 Q541071 Q360374 Q6602 Q535534 Q819620 Q193724 Q987487 Q180470 Q210365 Q533157 Q1630623 Q158245 Q2079 Q217698 Q379160 Q18575 Q1000069 Q612646 Q42622 Q71227 Q1641736 Q185684 Q373101 Q426868 Q278877 Q147738 Q502981 Q1008696 Q373023 Q954611 Q1761 Q373687 Q162880 Q682544 Q187136 Q404529 Q954569 Q304848 Q16666 Q34750 Q570768 Q321778 Q513417 Q11506 Q200603 Q946780 Q1899 Q1009095 Q57756 Q360643 Q58401 Q587388
(c(Q83620)|c(Q34442),P609,c(Q515))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q1000069
relation P609
type Q83620
type Q34442
[ANSWERS] are the terminus locations of approximately the same number of thoroughfares or roads as Lovosice
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?m ) WHERE { { ?e rdf:type ontology:Q515 . ?w rdf:type ontology:Q83620 . ?w property:P609 ?e } UNION { ?w property:P609 ?e . ?e rdf:type ontology:Q515 . ?w rdf:type ontology:Q34442 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { { ?h rdf:type ontology:Q83620 } UNION { ?h rdf:type ontology:Q34442 } } . ?h property:P609 resource:Q1000069 } } . FILTER ( ?m = ?q ) }
Miami Hegang Dubí Deyang Františkovy Lázně Trutnov Takasago České Budějovice Shangrao Uherský Ostroh Rožmitál pod Třemšínem Ürümqi Fuzhou Kasai Szolnok Wuwei Čáslav Lhasa Busan Hulín Anqing Strasbourg Hohhot Seiyo Slavkov u Brna Ostrov Huangshan City Beihai Tianshui Hostivice Písek Leipzig Weifang Kunszentmárton Tucson Lovosice Veselí nad Lužnicí Suzhou Shiyan Pohořelice Hefei Rizhao Leshan Český Těšín Saint Helier Miyako Rožnov pod Radhoštěm Weihai Jeseník Dublin Binzhou Dezhou Mikulov Luoyang Xuchang Vyškov Daqing Nanjing Fuxin Wuhai Hodonín Vsetín Denpasar Yawatahama Lanžhot Kyiv Otrokovice Lianyungang Suzhou, Anhui Shijiazhuang Mohelnice
Kyiv, Suzhou and České Budějovice are the terminus locations of approximately the same number of thoroughfares or roads as Lovosice
Kyiv Suzhou České Budějovice
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
action count
action filter_multi_types
action find_reverse
entity Lovosice
relation terminus location
type thoroughfare
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?m ) WHERE { { ?e rdf:type ontology:city . ?w rdf:type ontology:thoroughfare . ?w property:terminus_location ?e } UNION { ?w property:terminus_location ?e . ?e rdf:type ontology:city . ?w rdf:type ontology:road } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { { ?h rdf:type ontology:thoroughfare } UNION { ?h rdf:type ontology:road } } . ?h property:terminus_location resource:Lovosice } } . FILTER ( ?m = ?q ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q11506
P609
Q515 Q83620 Q34442
USER
And what about Denpasar?
(c(Q83620)|c(Q34442),P609,c(Q515))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q11506
relation P609
type Q83620
type Q34442
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?a ) WHERE { { ?l property:P609 ?b . ?l rdf:type ontology:Q83620 . ?b rdf:type ontology:Q515 } UNION { ?l property:P609 ?b . ?b rdf:type ontology:Q515 . ?l rdf:type ontology:Q34442 } } GROUP BY ?b } . FILTER ( ?a = ?s ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { ?i property:P609 resource:Q11506 . { VALUES ( ?p ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } . ?i rdf:type ?p } } } }
Denpasar
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
action count
action filter_multi_types
action find_reverse
entity Denpasar
relation terminus location
type thoroughfare
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?a ) WHERE { { ?l property:terminus_location ?b . ?l rdf:type ontology:thoroughfare . ?b rdf:type ontology:city } UNION { ?l property:terminus_location ?b . ?b rdf:type ontology:city . ?l rdf:type ontology:road } } GROUP BY ?b } . FILTER ( ?a = ?s ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { ?i property:terminus_location resource:Denpasar . { VALUES ( ?p ) { ( ontology:thoroughfare ) ( ontology:road ) } . ?i rdf:type ?p } } } }
[]
city thoroughfare road
Q1899 Q42622 Q16506
SYSTEM
Kyiv, Suzhou, České Budějovice
Q8652 Q349982 Q601254 Q425996 Q756581 Q320950 Q869037 Q16506 Q363479 Q1027604 Q2092257 Q16959 Q68481 Q851155 Q181276 Q249007 Q341777 Q5869 Q16520 Q541071 Q360374 Q6602 Q535534 Q819620 Q193724 Q987487 Q180470 Q210365 Q533157 Q1630623 Q158245 Q2079 Q217698 Q379160 Q18575 Q1000069 Q612646 Q42622 Q71227 Q1641736 Q185684 Q373101 Q426868 Q278877 Q147738 Q502981 Q1008696 Q373023 Q954611 Q1761 Q373687 Q162880 Q682544 Q187136 Q404529 Q954569 Q304848 Q16666 Q34750 Q570768 Q321778 Q513417 Q11506 Q200603 Q946780 Q1899 Q1009095 Q57756 Q360643 Q58401 Q587388
(c(Q83620)|c(Q34442),P609,c(Q515))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q11506
relation P609
type Q83620
type Q34442
[ANSWERS]
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?a ) WHERE { { ?l property:P609 ?b . ?l rdf:type ontology:Q83620 . ?b rdf:type ontology:Q515 } UNION { ?l property:P609 ?b . ?b rdf:type ontology:Q515 . ?l rdf:type ontology:Q34442 } } GROUP BY ?b } . FILTER ( ?a = ?s ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { ?i property:P609 resource:Q11506 . { VALUES ( ?p ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } . ?i rdf:type ?p } } } }
Miami Hegang Dubí Deyang Františkovy Lázně Trutnov Takasago České Budějovice Shangrao Uherský Ostroh Rožmitál pod Třemšínem Ürümqi Fuzhou Kasai Szolnok Wuwei Čáslav Lhasa Busan Hulín Anqing Strasbourg Hohhot Seiyo Slavkov u Brna Ostrov Huangshan City Beihai Tianshui Hostivice Písek Leipzig Weifang Kunszentmárton Tucson Lovosice Veselí nad Lužnicí Suzhou Shiyan Pohořelice Hefei Rizhao Leshan Český Těšín Saint Helier Miyako Rožnov pod Radhoštěm Weihai Jeseník Dublin Binzhou Dezhou Mikulov Luoyang Xuchang Vyškov Daqing Nanjing Fuxin Wuhai Hodonín Vsetín Denpasar Yawatahama Lanžhot Kyiv Otrokovice Lianyungang Suzhou, Anhui Shijiazhuang Mohelnice
Kyiv Suzhou České Budějovice
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
action count
action filter_multi_types
action find_reverse
entity Denpasar
relation terminus location
type thoroughfare
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?a ) WHERE { { ?l property:terminus_location ?b . ?l rdf:type ontology:thoroughfare . ?b rdf:type ontology:city } UNION { ?l property:terminus_location ?b . ?b rdf:type ontology:city . ?l rdf:type ontology:road } } GROUP BY ?b } . FILTER ( ?a = ?s ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { ?i property:terminus_location resource:Denpasar . { VALUES ( ?p ) { ( ontology:thoroughfare ) ( ontology:road ) } . ?i rdf:type ?p } } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q515 Q486972
USER
How many cities and human settlements share border with that city ?
(c(Q515),P47,Q16506) (c(Q486972),P47,Q16506) (c(Q515),P47,Q1899) (c(Q486972),P47,Q1899) (c(Q515),P47,Q42622) (c(Q486972),P47,Q42622) (c(Q515),P47,Q16506) (c(Q486972),P47,Q16506)
[{'concept': 'Q515'}, 'P47', 'Q16506'] [{'concept': 'Q486972'}, 'P47', 'Q16506'] [{'concept': 'Q515'}, 'P47', 'Q1899'] [{'concept': 'Q486972'}, 'P47', 'Q1899'] [{'concept': 'Q515'}, 'P47', 'Q42622'] [{'concept': 'Q486972'}, 'P47', 'Q42622'] [{'concept': 'Q515'}, 'P47', 'Q16506'] [{'concept': 'Q486972'}, 'P47', 'Q16506']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q16506 } UNION { ?y property:P47 resource:Q16506 } UNION { ?z property:P47 resource:Q4512420 } UNION { ?y property:P47 resource:Q4512420 } UNION { ?z property:P47 resource:Q10935365 } UNION { ?y property:P47 resource:Q10935365 } UNION { ?z property:P47 resource:Q16506 } UNION { ?y property:P47 resource:Q16506 } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q486972 }
[{'concept': 'city'}, 'shares border with', 'České Budějovice'] [{'concept': 'human settlement'}, 'shares border with', 'České Budějovice'] [{'concept': 'city'}, 'shares border with', 'Kyiv'] [{'concept': 'human settlement'}, 'shares border with', 'Kyiv'] [{'concept': 'city'}, 'shares border with', 'Suzhou'] [{'concept': 'human settlement'}, 'shares border with', 'Suzhou'] [{'concept': 'city'}, 'shares border with', 'České Budějovice'] [{'concept': 'human settlement'}, 'shares border with', 'České Budějovice']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:České_Budějovice } UNION { ?y property:shares_border_with resource:České_Budějovice } UNION { ?z property:shares_border_with resource:Kyiv } UNION { ?y property:shares_border_with resource:Kyiv } UNION { ?z property:shares_border_with resource:Suzhou } UNION { ?y property:shares_border_with resource:Suzhou } UNION { ?z property:shares_border_with resource:České_Budějovice } UNION { ?y property:shares_border_with resource:České_Budějovice } } . ?z rdf:type ontology:city . ?y rdf:type ontology:human_settlement }
[]
city human settlement
Quantitative|Count|Mult. entity type|Clarification
Q42622
SYSTEM
Did you mean Suzhou ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q16506 } UNION { ?y property:P47 resource:Q16506 } UNION { ?z property:P47 resource:Q4512420 } UNION { ?y property:P47 resource:Q4512420 } UNION { ?z property:P47 resource:Q10935365 } UNION { ?y property:P47 resource:Q10935365 } UNION { ?z property:P47 resource:Q16506 } UNION { ?y property:P47 resource:Q16506 } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q486972 }
Did you mean Suzhou ?
Suzhou
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:České_Budějovice } UNION { ?y property:shares_border_with resource:České_Budějovice } UNION { ?z property:shares_border_with resource:Kyiv } UNION { ?y property:shares_border_with resource:Kyiv } UNION { ?z property:shares_border_with resource:Suzhou } UNION { ?y property:shares_border_with resource:Suzhou } UNION { ?z property:shares_border_with resource:České_Budějovice } UNION { ?y property:shares_border_with resource:České_Budějovice } } . ?z rdf:type ontology:city . ?y rdf:type ontology:human_settlement }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant České Budějovice. Could you tell me the answer for that?
(c(Q515),P47,Q16506) (c(Q486972),P47,Q16506) (c(Q515),P47,Q1899) (c(Q486972),P47,Q1899) (c(Q515),P47,Q42622) (c(Q486972),P47,Q42622) (c(Q515),P47,Q16506) (c(Q486972),P47,Q16506)
Q16506
[{'concept': 'Q515'}, 'P47', 'Q16506'] [{'concept': 'Q486972'}, 'P47', 'Q16506'] [{'concept': 'Q515'}, 'P47', 'Q1899'] [{'concept': 'Q486972'}, 'P47', 'Q1899'] [{'concept': 'Q515'}, 'P47', 'Q42622'] [{'concept': 'Q486972'}, 'P47', 'Q42622'] [{'concept': 'Q515'}, 'P47', 'Q16506'] [{'concept': 'Q486972'}, 'P47', 'Q16506']
[{'concept': 'city'}, 'shares border with', 'České Budějovice'] [{'concept': 'human settlement'}, 'shares border with', 'České Budějovice'] [{'concept': 'city'}, 'shares border with', 'Kyiv'] [{'concept': 'human settlement'}, 'shares border with', 'Kyiv'] [{'concept': 'city'}, 'shares border with', 'Suzhou'] [{'concept': 'human settlement'}, 'shares border with', 'Suzhou'] [{'concept': 'city'}, 'shares border with', 'České Budějovice'] [{'concept': 'human settlement'}, 'shares border with', 'České Budějovice']
[]
SYSTEM
3 cities and 1 human settlements
Q1756940 Q1010144 Q1811531 Q1713787
(c(Q515),P47,Q16506) (c(Q486972),P47,Q16506) (c(Q515),P47,Q1899) (c(Q486972),P47,Q1899) (c(Q515),P47,Q42622) (c(Q486972),P47,Q42622) (c(Q515),P47,Q16506) (c(Q486972),P47,Q16506)
[ANSWER]
[{'concept': 'Q515'}, 'P47', 'Q16506'] [{'concept': 'Q486972'}, 'P47', 'Q16506'] [{'concept': 'Q515'}, 'P47', 'Q1899'] [{'concept': 'Q486972'}, 'P47', 'Q1899'] [{'concept': 'Q515'}, 'P47', 'Q42622'] [{'concept': 'Q486972'}, 'P47', 'Q42622'] [{'concept': 'Q515'}, 'P47', 'Q16506'] [{'concept': 'Q486972'}, 'P47', 'Q16506']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q16506 } UNION { ?y property:P47 resource:Q16506 } UNION { ?z property:P47 resource:Q4512420 } UNION { ?y property:P47 resource:Q4512420 } UNION { ?z property:P47 resource:Q10935365 } UNION { ?y property:P47 resource:Q10935365 } UNION { ?z property:P47 resource:Q16506 } UNION { ?y property:P47 resource:Q16506 } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q486972 }
Planá Hluboká nad Vltavou Ledenice Rudolfov
3 cities and 1 human settlements
[{'concept': 'city'}, 'shares border with', 'České Budějovice'] [{'concept': 'human settlement'}, 'shares border with', 'České Budějovice'] [{'concept': 'city'}, 'shares border with', 'Kyiv'] [{'concept': 'human settlement'}, 'shares border with', 'Kyiv'] [{'concept': 'city'}, 'shares border with', 'Suzhou'] [{'concept': 'human settlement'}, 'shares border with', 'Suzhou'] [{'concept': 'city'}, 'shares border with', 'České Budějovice'] [{'concept': 'human settlement'}, 'shares border with', 'České Budějovice']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:České_Budějovice } UNION { ?y property:shares_border_with resource:České_Budějovice } UNION { ?z property:shares_border_with resource:Kyiv } UNION { ?y property:shares_border_with resource:Kyiv } UNION { ?z property:shares_border_with resource:Suzhou } UNION { ?y property:shares_border_with resource:Suzhou } UNION { ?z property:shares_border_with resource:České_Budějovice } UNION { ?y property:shares_border_with resource:České_Budějovice } } . ?z rdf:type ontology:city . ?y rdf:type ontology:human_settlement }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1899
P291
Q234460
USER
Which text was published in Kyiv ?
(c(Q234460),P291,Q1899)
action filter_type
action find_reverse
entity Q1899
relation P291
type Q234460
[{'concept': 'Q234460'}, 'P291', 'Q1899']
SELECT DISTINCT ?t WHERE { ?t property:P291 resource:Q1899 . ?t rdf:type ontology:Q234460 }
Kyiv
action filter_type
action find_reverse
entity Kyiv
relation place of publication
type text
[{'concept': 'text'}, 'place of publication', 'Kyiv']
SELECT DISTINCT ?t WHERE { ?t property:place_of_publication resource:Kyiv . ?t rdf:type ontology:text }
[]
text
Q2381890
SYSTEM
Sermon on Law and Grace
Q2381890
(c(Q234460),P291,Q1899)
action filter_type
action find_reverse
entity Q1899
relation P291
type Q234460
[ANSWER] was published in Kyiv
[{'concept': 'Q234460'}, 'P291', 'Q1899']
SELECT DISTINCT ?t WHERE { ?t property:P291 resource:Q1899 . ?t rdf:type ontology:Q234460 }
Sermon on Law and Grace
Sermon on Law and Grace was published in Kyiv
Sermon on Law and Grace
action filter_type
action find_reverse
entity Kyiv
relation place of publication
type text
[{'concept': 'text'}, 'place of publication', 'Kyiv']
SELECT DISTINCT ?t WHERE { ?t property:place_of_publication resource:Kyiv . ?t rdf:type ontology:text }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2381890
P136
Q1792379
USER
What can be considered as category for that text ?
(Q2381890,P136,c(Q1792379))
action filter_type
action find
entity Q2381890
relation P136
type Q1792379
['Q2381890', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1792379 . resource:Q2381890 property:P136 ?j }
Sermon on Law and Grace
action filter_type
action find
entity Sermon on Law and Grace
relation genre
type art genre
['Sermon on Law and Grace', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:art_genre . resource:Sermon_on_Law_and_Grace property:genre ?j }
[]
art genre
Q60797
SYSTEM
sermon
Q60797
(Q2381890,P136,c(Q1792379))
action filter_type
action find
entity Q2381890
relation P136
type Q1792379
A [ANSWER] can be considered as category for that text
['Q2381890', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1792379 . resource:Q2381890 property:P136 ?j }
sermon
A sermon can be considered as category for that text
sermon
action filter_type
action find
entity Sermon on Law and Grace
relation genre
type art genre
['Sermon on Law and Grace', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:art_genre . resource:Sermon_on_Law_and_Grace property:genre ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2381890
P50
Q502895
USER
Who authored that text ?
(Q60797,P50,c(Q502895))
action filter_type
action find
entity Q2381890
relation P50
type Q502895
['Q60797', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q2381890 property:P50 ?l . ?l rdf:type ontology:Q502895 }
Sermon on Law and Grace
action filter_type
action find
entity Sermon on Law and Grace
relation author
type common name
['sermon', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Sermon_on_Law_and_Grace property:author ?l . ?l rdf:type ontology:common_name }
[]
common name
Q562243
SYSTEM
Hilarion of Kiev
Q562243
(Q60797,P50,c(Q502895))
action filter_type
action find
entity Q2381890
relation P50
type Q502895
[ANSWER] authored that text
['Q60797', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q2381890 property:P50 ?l . ?l rdf:type ontology:Q502895 }
Hilarion of Kiev
Hilarion of Kiev authored that text
Hilarion of Kiev
action filter_type
action find
entity Sermon on Law and Grace
relation author
type common name
['sermon', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Sermon_on_Law_and_Grace property:author ?l . ?l rdf:type ontology:common_name }
[]