Simple Question (Direct)
Simple Question
Q468448
P19
Q56061
USER
Which administrative territory was Jiggs Whigham born in ?
(Q468448,P19,c(Q56061))
action filter_type
action find
entity Q468448
relation P19
type Q56061
['Q468448', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q468448 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Jiggs Whigham
action filter_type
action find
entity Jiggs Whigham
relation place of birth
type administrative territorial entity
['Jiggs Whigham', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Jiggs_Whigham property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q37320
SYSTEM
Cleveland
Q37320
(Q468448,P19,c(Q56061))
action filter_type
action find
entity Q468448
relation P19
type Q56061
Jiggs Whigham was born in [ANSWER]
['Q468448', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q468448 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Cleveland
Jiggs Whigham was born in Cleveland
Cleveland
action filter_type
action find
entity Jiggs Whigham
relation place of birth
type administrative territorial entity
['Jiggs Whigham', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Jiggs_Whigham property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q37320
P6
Q502895
USER
Which person is the head of government of that administrative territory ?
(Q37320,P6,c(Q502895))
action filter_type
action find
entity Q37320
relation P6
type Q502895
['Q37320', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q37320 property:P6 ?k }
Cleveland
action filter_type
action find
entity Cleveland
relation head of government
type common name
['Cleveland', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Cleveland property:head_of_government ?k }
[]
common name
Q5486737
SYSTEM
Frank G. Jackson
Q5486737
(Q37320,P6,c(Q502895))
action filter_type
action find
entity Q37320
relation P6
type Q502895
[ANSWER] is the head of government of that administrative territory
['Q37320', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q37320 property:P6 ?k }
Frank G. Jackson
Frank G. Jackson is the head of government of that administrative territory
Frank G. Jackson
action filter_type
action find
entity Cleveland
relation head of government
type common name
['Cleveland', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Cleveland property:head_of_government ?k }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P6
Q56061
USER
How many administrative territories have that person as their head of government ?
(c(Q56061),P6,Q5486737)
action count
action filter_type
action find_reverse
entity Q5486737
relation P6
type Q56061
[{'concept': 'Q56061'}, 'P6', 'Q5486737']
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:P6 resource:Q5486737 . ?l rdf:type ontology:Q56061 }
action count
action filter_type
action find_reverse
entity Frank G. Jackson
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Frank G. Jackson']
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:head_of_government resource:Frank_G._Jackson . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q37320
(c(Q56061),P6,Q5486737)
action count
action filter_type
action find_reverse
entity Q5486737
relation P6
type Q56061
[ANSWER]
[{'concept': 'Q56061'}, 'P6', 'Q5486737']
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:P6 resource:Q5486737 . ?l rdf:type ontology:Q56061 }
Cleveland
1
action count
action filter_type
action find_reverse
entity Frank G. Jackson
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Frank G. Jackson']
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:head_of_government resource:Frank_G._Jackson . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5486737
P241
Q781132
USER
Which military branch did Frank G. Jackson belong to ?
(Q5486737,P241,c(Q781132))
action filter_type
action find
entity Q5486737
relation P241
type Q781132
['Q5486737', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?t WHERE { resource:Q5486737 property:P241 ?t . ?t rdf:type ontology:Q781132 }
Frank G. Jackson
action filter_type
action find
entity Frank G. Jackson
relation military branch
type military branch
['Frank G. Jackson', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?t WHERE { resource:Frank_G._Jackson property:military_branch ?t . ?t rdf:type ontology:military_branch }
[]
military branch
Q9212
SYSTEM
United States Army
Q9212
(Q5486737,P241,c(Q781132))
action filter_type
action find
entity Q5486737
relation P241
type Q781132
Frank G. Jackson belonged to the [ANSWER]
['Q5486737', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?t WHERE { resource:Q5486737 property:P241 ?t . ?t rdf:type ontology:Q781132 }
United States Army
Frank G. Jackson belonged to the United States Army
United States Army
action filter_type
action find
entity Frank G. Jackson
relation military branch
type military branch
['Frank G. Jackson', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?t WHERE { resource:Frank_G._Jackson property:military_branch ?t . ?t rdf:type ontology:military_branch }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5486737
P102
Q7210356
USER
Which party is Frank G. Jackson affiliated with ?
(Q5486737,P102,c(Q7210356))
action filter_type
action find
entity Q5486737
relation P102
type Q7210356
['Q5486737', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?v WHERE { resource:Q5486737 property:P102 ?v . ?v rdf:type ontology:Q7210356 }
Frank G. Jackson
action filter_type
action find
entity Frank G. Jackson
relation member of political party
type political organization
['Frank G. Jackson', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?v WHERE { resource:Frank_G._Jackson property:member_of_political_party ?v . ?v rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q5486737,P102,c(Q7210356))
action filter_type
action find
entity Q5486737
relation P102
type Q7210356
Frank G. Jackson is affiliated with [ANSWER]
['Q5486737', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?v WHERE { resource:Q5486737 property:P102 ?v . ?v rdf:type ontology:Q7210356 }
Democratic Party
Frank G. Jackson is affiliated with Democratic Party
Democratic Party
action filter_type
action find
entity Frank G. Jackson
relation member of political party
type political organization
['Frank G. Jackson', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?v WHERE { resource:Frank_G._Jackson property:member_of_political_party ?v . ?v rdf:type ontology:political_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q57703
Q7210356
USER
And how about Viktor Lutze?
(Q57703,P102,c(Q7210356))
action filter_type
action find
entity Q57703
relation P102
type Q7210356
['Q57703', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q57703 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Viktor Lutze
action filter_type
action find
entity Viktor Lutze
relation member of political party
type political organization
['Viktor Lutze', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Viktor_Lutze property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
Q7320
SYSTEM
Nazi Party
Q7320
(Q57703,P102,c(Q7210356))
action filter_type
action find
entity Q57703
relation P102
type Q7210356
[ANSWER]
['Q57703', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q57703 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Nazi Party
Nazi Party
action filter_type
action find
entity Viktor Lutze
relation member of political party
type political organization
['Viktor Lutze', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Viktor_Lutze property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q7320 Q5340560
P102
Q502895
USER
Is Eduardo Catroga affiliated to that political organization ?
(Q5340560,P102,Q7320)
action is_in
entity Q5340560
action find
entity Q7320
relation P102
['Q5340560', 'P102', 'Q7320']
ASK WHERE { resource:Q7320 property:P102 resource:Q5340560 }
Nazi Party Eduardo Catroga
action is_in
entity Eduardo Catroga
action find
entity Nazi Party
relation member of political party
['Eduardo Catroga', 'member of political party', 'Nazi Party']
ASK WHERE { resource:Nazi_Party property:member_of_political_party resource:Eduardo_Catroga }
[]
common name
SYSTEM
NO
(Q5340560,P102,Q7320)
action is_in
entity Q5340560
action find
entity Q7320
relation P102
[ANSWER]
['Q5340560', 'P102', 'Q7320']
ASK WHERE { resource:Q7320 property:P102 resource:Q5340560 }
No
action is_in
entity Eduardo Catroga
action find
entity Nazi Party
relation member of political party
['Eduardo Catroga', 'member of political party', 'Nazi Party']
ASK WHERE { resource:Nazi_Party property:member_of_political_party resource:Eduardo_Catroga }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q218
P137
Q43229
USER
Which organization was managed by Romania ?
(c(Q43229),P137,Q218)
action filter_type
action find_reverse
entity Q218
relation P137
type Q43229
[{'concept': 'Q43229'}, 'P137', 'Q218']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q43229 . ?c property:P137 resource:Q218 }
Romania
action filter_type
action find_reverse
entity Romania
relation operator
type organization
[{'concept': 'organization'}, 'operator', 'Romania']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:organization . ?c property:operator resource:Romania }
[]
organization
Q846168
SYSTEM
Romanian Television
Q846168
(c(Q43229),P137,Q218)
action filter_type
action find_reverse
entity Q218
relation P137
type Q43229
[ANSWER] was managed by Romania
[{'concept': 'Q43229'}, 'P137', 'Q218']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q43229 . ?c property:P137 resource:Q218 }
Romanian Television
Romanian Television was managed by Romania
Romanian Television
action filter_type
action find_reverse
entity Romania
relation operator
type organization
[{'concept': 'organization'}, 'operator', 'Romania']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:organization . ?c property:operator resource:Romania }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q846168
P159
Q515
USER
Where is the head office for that organization located ?
(Q846168,P159,c(Q515))
action filter_type
action find
entity Q846168
relation P159
type Q515
['Q846168', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q515 . resource:Q846168 property:P159 ?p }
Romanian Television
action filter_type
action find
entity Romanian Television
relation headquarters location
type city
['Romanian Television', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:city . resource:Romanian_Television property:headquarters_location ?p }
[]
city
Q19660
SYSTEM
Bucharest
Q19660
(Q846168,P159,c(Q515))
action filter_type
action find
entity Q846168
relation P159
type Q515
The head office for that organization is located in [ANSWER]
['Q846168', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q515 . resource:Q846168 property:P159 ?p }
Bucharest
The head office for that organization is located in Bucharest
Bucharest
action filter_type
action find
entity Romanian Television
relation headquarters location
type city
['Romanian Television', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:city . resource:Romanian_Television property:headquarters_location ?p }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q19660 Q21197
P190
Q56061
USER
Is Chișinău twin city of Bucharest ?
(Q19660,P190,Q21197)
action is_in
entity Q21197
action find
entity Q19660
relation P190
['Q19660', 'P190', 'Q21197']
ASK WHERE { resource:Q19660 property:P190 resource:Q21197 }
Bucharest Chișinău
action is_in
entity Chișinău
action find
entity Bucharest
relation sister city
['Bucharest', 'sister city', 'Chișinău']
ASK WHERE { resource:Bucharest property:sister_city resource:Chișinău }
[]
administrative territorial entity
SYSTEM
YES
(Q19660,P190,Q21197)
action is_in
entity Q21197
action find
entity Q19660
relation P190
[ANSWER]
['Q19660', 'P190', 'Q21197']
ASK WHERE { resource:Q19660 property:P190 resource:Q21197 }
Yes
action is_in
entity Chișinău
action find
entity Bucharest
relation sister city
['Bucharest', 'sister city', 'Chișinău']
ASK WHERE { resource:Bucharest property:sister_city resource:Chișinău }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q9212 Q7252284 Q30
P17
Q15617994
USER
Is United States Army present in Provanhall and United States of America ?
(Q9212,P17,Q7252284) (Q9212,P17,Q30)
action is_in
entity Q9212
action intersection
action find_reverse
entity Q7252284
relation P17
action find_reverse
entity Q30
relation P17
['Q9212', 'P17', 'Q7252284'] ['Q9212', 'P17', 'Q30']
ASK WHERE { resource:Q9212 property:P17 resource:Q7252284 . resource:Q9212 property:P17 resource:Q30 }
United States Army Provanhall United States of America
action is_in
entity United States Army
action intersection
action find_reverse
entity Provanhall
relation country
action find_reverse
entity United States of America
relation country
['United States Army', 'country', 'Provanhall'] ['United States Army', 'country', 'United States of America']
ASK WHERE { resource:United_States_Army property:country resource:Provanhall . resource:United_States_Army property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q9212,P17,Q7252284) (Q9212,P17,Q30)
action is_in
entity Q9212
action intersection
action find_reverse
entity Q7252284
relation P17
action find_reverse
entity Q30
relation P17
[ANSWER]
['Q9212', 'P17', 'Q7252284'] ['Q9212', 'P17', 'Q30']
ASK WHERE { resource:Q9212 property:P17 resource:Q7252284 . resource:Q9212 property:P17 resource:Q30 }
NO and YES respectively
action is_in
entity United States Army
action intersection
action find_reverse
entity Provanhall
relation country
action find_reverse
entity United States of America
relation country
['United States Army', 'country', 'Provanhall'] ['United States Army', 'country', 'United States of America']
ASK WHERE { resource:United_States_Army property:country resource:Provanhall . resource:United_States_Army property:country resource:United_States_of_America }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q183584
P609
Q515 Q34442 Q83620
USER
Which cities are the destinations of lesser number of roads and thoroughfares than Lanzhou ?
(c(Q34442)|c(Q83620),P609,c(Q515))
action less
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q183584
relation P609
type Q34442
type Q83620
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?d WHERE { VALUES ( ?j ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } . ?r rdf:type ?j } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { ?b property:P609 resource:Q183584 . { { ?b rdf:type ontology:Q34442 } UNION { ?b rdf:type ontology:Q83620 } } } } . FILTER ( ?u < ?y ) }
Lanzhou
action less
action union
action find_reverse_tuple_counts
relation terminus location
type city
type road
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Lanzhou
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?d WHERE { VALUES ( ?j ) { ( ontology:road ) ( ontology:thoroughfare ) } . ?r rdf:type ?j } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { ?b property:terminus_location resource:Lanzhou . { { ?b rdf:type ontology:road } UNION { ?b rdf:type ontology:thoroughfare } } } } . FILTER ( ?u < ?y ) }
[]
city road thoroughfare
Q1899 Q1731 Q42622
SYSTEM
Kyiv, Dresden, Suzhou
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 Q1731 Q360643 Q58401 Q587388
(c(Q34442)|c(Q83620),P609,c(Q515))
action less
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q183584
relation P609
type Q34442
type Q83620
[ANSWERS] are the destinations of lesser number of roads and thoroughfares than Lanzhou
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?d WHERE { VALUES ( ?j ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } . ?r rdf:type ?j } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { ?b property:P609 resource:Q183584 . { { ?b rdf:type ontology:Q34442 } UNION { ?b rdf:type ontology:Q83620 } } } } . FILTER ( ?u < ?y ) }
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 Dresden Suzhou, Anhui Shijiazhuang Mohelnice
Kyiv, Dresden and Suzhou are the destinations of lesser number of roads and thoroughfares than Lanzhou
Kyiv Dresden Suzhou
action less
action union
action find_reverse_tuple_counts
relation terminus location
type city
type road
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Lanzhou
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) ?d WHERE { VALUES ( ?j ) { ( ontology:road ) ( ontology:thoroughfare ) } . ?r rdf:type ?j } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { ?b property:terminus_location resource:Lanzhou . { { ?b rdf:type ontology:road } UNION { ?b rdf:type ontology:thoroughfare } } } } . FILTER ( ?u < ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q14960
P609
Q515 Q34442 Q83620
USER
And how about Brno?
(c(Q34442)|c(Q83620),P609,c(Q515))
action less
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q14960
relation P609
type Q34442
type Q83620
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?a ) WHERE { { ?f rdf:type ontology:Q515 . ?s rdf:type ontology:Q83620 . ?s property:P609 ?f } UNION { ?s property:P609 ?f . ?f rdf:type ontology:Q515 . ?s rdf:type ontology:Q34442 } } GROUP BY ?f } . FILTER ( ?a < ?p ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:P609 resource:Q14960 . { VALUES ( ?b ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } . ?z rdf:type ?b } } } }
Brno
action less
action union
action find_reverse_tuple_counts
relation terminus location
type city
type road
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Brno
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?a ) WHERE { { ?f rdf:type ontology:city . ?s rdf:type ontology:thoroughfare . ?s property:terminus_location ?f } UNION { ?s property:terminus_location ?f . ?f rdf:type ontology:city . ?s rdf:type ontology:road } } GROUP BY ?f } . FILTER ( ?a < ?p ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:terminus_location resource:Brno . { VALUES ( ?b ) { ( ontology:thoroughfare ) ( ontology:road ) } . ?z rdf:type ?b } } } }
[]
city road thoroughfare
Q1899 Q1731 Q42622
SYSTEM
Kyiv, Dresden, Suzhou
Q8652 Q349982 Q601254 Q425996 Q756581 Q182852 Q320950 Q869037 Q16506 Q363479 Q1027604 Q2092257 Q16959 Q68481 Q851155 Q181276 Q249007 Q341777 Q5869 Q16520 Q541071 Q360374 Q6602 Q535534 Q819620 Q193724 Q987487 Q180470 Q210365 Q533157 Q58560 Q1630623 Q158245 Q2079 Q23768 Q217698 Q379160 Q18575 Q11736 Q1000069 Q211243 Q612646 Q42622 Q71227 Q1641736 Q185684 Q75110 Q373101 Q426868 Q278877 Q147738 Q502981 Q1008696 Q373023 Q954611 Q1761 Q373687 Q162880 Q682544 Q187136 Q404529 Q183584 Q954569 Q304848 Q16666 Q34750 Q570768 Q321778 Q513417 Q11506 Q200603 Q946780 Q1899 Q1009095 Q57756 Q1731 Q360643 Q58401 Q587388
(c(Q34442)|c(Q83620),P609,c(Q515))
action less
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q14960
relation P609
type Q34442
type Q83620
[ANSWERS]
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?a ) WHERE { { ?f rdf:type ontology:Q515 . ?s rdf:type ontology:Q83620 . ?s property:P609 ?f } UNION { ?s property:P609 ?f . ?f rdf:type ontology:Q515 . ?s rdf:type ontology:Q34442 } } GROUP BY ?f } . FILTER ( ?a < ?p ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:P609 resource:Q14960 . { VALUES ( ?b ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } . ?z rdf:type ?b } } } }
Miami Hegang Dubí Deyang Františkovy Lázně Kunming 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 Qinhuangdao Hostivice Písek Leipzig Las Vegas Weifang Kunszentmárton Tucson Tianjin Lovosice Yinchuan Veselí nad Lužnicí Suzhou Shiyan Pohořelice Hefei Dandong Rizhao Leshan Český Těšín Saint Helier Miyako Rožnov pod Radhoštěm Weihai Jeseník Dublin Binzhou Dezhou Mikulov Luoyang Xuchang Lanzhou Vyškov Daqing Nanjing Fuxin Wuhai Hodonín Vsetín Denpasar Yawatahama Lanžhot Kyiv Otrokovice Lianyungang Dresden Suzhou, Anhui Shijiazhuang Mohelnice
Kyiv Dresden Suzhou
action less
action union
action find_reverse_tuple_counts
relation terminus location
type city
type road
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Brno
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?a ) WHERE { { ?f rdf:type ontology:city . ?s rdf:type ontology:thoroughfare . ?s property:terminus_location ?f } UNION { ?s property:terminus_location ?f . ?f rdf:type ontology:city . ?s rdf:type ontology:road } } GROUP BY ?f } . FILTER ( ?a < ?p ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:terminus_location resource:Brno . { VALUES ( ?b ) { ( ontology:thoroughfare ) ( ontology:road ) } . ?z rdf:type ?b } } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P190
Q515
USER
How many cities are partner towns of that city ?
(Q42622,P190,c(Q515))
['Q42622', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q10935365 property:P190 ?z . ?z rdf:type ontology:Q7930989 }
['Suzhou', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Suzhou property:sister_city ?z . ?z rdf:type ontology:city }
[]
city
Quantitative|Count|Single entity type|Clarification
Q1731
SYSTEM
Did you mean Dresden ?
(Q1899,P190,c(Q515)) (Q1731,P190,c(Q515)) (Q42622,P190,c(Q515))
[ANSWER]
['Q1899', 'P190', {'concept': 'Q515'}] ['Q1731', 'P190', {'concept': 'Q515'}] ['Q42622', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q10935365 property:P190 ?z . ?z rdf:type ontology:Q7930989 }
Did you mean Dresden ?
Dresden
['Kyiv', 'sister city', {'concept': 'city'}] ['Dresden', 'sister city', {'concept': 'city'}] ['Suzhou', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Suzhou property:sister_city ?z . ?z rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Suzhou. Could you tell me the answer for that?
(Q42622,P190,c(Q515))
Q42622
['Q42622', 'P190', {'concept': 'Q515'}]
['Suzhou', 'sister city', {'concept': 'city'}]
[]
SYSTEM
13
Q1773 Q694370 Q501891 Q817965 Q3915 Q240489 Q15720 Q633996 Q460835 Q157835 Q117604 Q166183 Q1899
(Q42622,P190,c(Q515))
[ANSWER]
['Q42622', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q10935365 property:P190 ?z . ?z rdf:type ontology:Q7930989 }
Riga Ayabe Tahara Ikeda Antananarivo Higashimurayama Satsumasendai Kameoka Marugame Zaporizhzhya Nago Nabari Kyiv
13
['Suzhou', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Suzhou property:sister_city ?z . ?z rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q1048835 Q515
USER
How many political territories have approximately 1 city as their capital ?
(c(Q515),P1376,c(Q1048835))
action count
action approx
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
value 1
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?s ) WHERE { ?i rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q515 . ?b property:P1376 ?i } GROUP BY ?i } . FILTER ( ?s = 1 ) }
action count
action approx
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
value 1
[{'concept': 'city'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?s ) WHERE { ?i rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:city . ?b property:capital_of ?i } GROUP BY ?i } . FILTER ( ?s = 1 ) }
[]
political territorial entity city
SYSTEM
114
Q13881 Q13882 Q13884 Q13889 Q785 Q13726 Q2051 Q3891 Q3899 Q2175 Q2271 Q48060 Q13900 Q170390 Q8170 Q168651 Q3741 Q2223 Q13786 Q13785 Q13869 Q13868 Q13865 Q13863 Q13862 Q10547 Q1890 Q664 Q12741 Q6339 Q5082 Q5065 Q5067 Q5061 Q5062 Q5068 Q13737 Q7932 Q2140 Q13827 Q13826 Q13825 Q13829 Q953068 Q170036 Q9648 Q3125978 Q13857 Q757 Q13772 Q6301 Q7890 Q3916 Q13794 Q13791 Q13792 Q13813 Q48079 Q5093 Q5095 Q671742 Q5075 Q193619 Q13744 Q48094 Q192697 Q2772 Q13874 Q7928 Q188373 Q48046 Q2101298 Q1823 Q13844 Q13847 Q13843 Q2594990 Q8195 Q2110 Q48072 Q3586 Q13892 Q13891 Q13899 Q3906 Q1866 Q13809 Q13860 Q13806 Q240441 Q24174 Q10440 Q49655 Q190930 Q13753 Q13752 Q13755 Q13759 Q8167 Q48089 Q7916 Q7912 Q3540 Q10526 Q13870 Q13872 Q3724 Q13876 Q48057 Q6328 Q10557 Q10555 Q2902 Q10559
(c(Q515),P1376,c(Q1048835))
action count
action approx
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
value 1
[ANSWER]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?s ) WHERE { ?i rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q515 . ?b property:P1376 ?i } GROUP BY ?i } . FILTER ( ?s = 1 ) }
Sorsogon South Cotabato Southern Leyte Surigao del Norte Jersey Albay Jambi Province Kalimantan Tengah Kalimantan Timur Riau Province South Sumatra Gera District Zamboanga del Sur County of Oldenburg Tübingen Landgraviate of Hesse-Kassel Special Region of Yogyakarta Kepulauan Riau Cebu Cavite Palawan Oriental Mindoro Nueva Ecija Negros Oriental Negros Occidental Lower Franconia Bengkulu Province New Zealand Ilocos Sur Erzgebirgskreis West Sulawesi Central Sulawesi Province Gorontalo Province East Nusa Tenggara Province West Nusa Tenggara North Sulawesi Province Basilan Darmstadt Government Region North Sumatra Province Kalinga Isabela Iloilo La Union South-West Africa Kiev Oblast Falkland Islands Bali Misamis Occidental Saint Vincent and the Grenadines Capiz Nordsachsen Kassel Kalimantan Barat Davao del Sur Cotabato Davao del Norte Ilocos Norte Leipzig District Maluku Province Papua General Pueyrredón South East Sulawesi Province Union of South Africa Batangas Potsdam District South Moravian Region West Sumatra Rizal Kassel  Government Region South Bohemia Region Cottbus Tandil Aceh Leyte Masbate Lanao del Sur Dominion of New Zealand Breisgau-Hochschwarzwald Lampung Province Karl-Marx-Stadt District East Java Tarlac Surigao del Sur Zamboanga del Norte Kalimantan Selatan Bangka–Belitung Islands Eastern Samar Misamis Oriental Davao Oriental General Alvarado Partido Dresden Government Region Coburg Schellenberg Vysočina Region Bukidnon Bohol Bulacan Cagayan Freiburg Government Region Neubrandenburg District Darmstadt-Dieburg Offenbach Banten Province Rosenheim Pampanga Quezon West Java Province Samar Frankfurt (Oder) Mittelsachsen Swabia Upper Palatinate Mecklenburgische Seenplatte District Lower Bavaria
114
action count
action approx
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
value 1
[{'concept': 'city'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?s ) WHERE { ?i rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:city . ?b property:capital_of ?i } GROUP BY ?i } . FILTER ( ?s = 1 ) }
[]