Simple Question (Direct)
Simple Question
Q5336068
P21
Q290
USER
Which sex does Eddie Glass belong to ?
(Q5336068,P21,c(Q290))
action filter_type
action find
entity Q5336068
relation P21
type Q290
['Q5336068', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q5336068 property:P21 ?s . ?s rdf:type ontology:Q290 }
Eddie Glass
action filter_type
action find
entity Eddie Glass
relation gender
type sex
['Eddie Glass', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Eddie_Glass property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5336068,P21,c(Q290))
action filter_type
action find
entity Q5336068
relation P21
type Q290
Eddie Glass belongs to [ANSWER]
['Q5336068', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q5336068 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
Eddie Glass belongs to male
male
action filter_type
action find
entity Eddie Glass
relation gender
type sex
['Eddie Glass', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Eddie_Glass property:gender ?s . ?s rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6313750 Q5336068
P19
Q515
USER
Which cities were Eddie Glass or Junix Inocian born in ?
OR((Q5336068,P19,c(Q515)), (Q6313750,P19,c(Q515)))
action filter_type
action union
action find
entity Q5336068
relation P19
action find
entity Q6313750
relation P19
type Q515
{'OR': [['Q5336068', 'P19', {'concept': 'Q515'}], ['Q6313750', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?n WHERE { { ?d property:P19 ?n . VALUES ( ?d ) { ( resource:Q5336068 ) ( resource:Q6313750 ) } } . ?n rdf:type ontology:Q515 }
Junix Inocian Eddie Glass
action filter_type
action union
action find
entity Eddie Glass
relation place of birth
action find
entity Junix Inocian
relation place of birth
type city
{'OR': [['Eddie Glass', 'place of birth', {'concept': 'city'}], ['Junix Inocian', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?n WHERE { { ?d property:place_of_birth ?n . VALUES ( ?d ) { ( resource:Eddie_Glass ) ( resource:Junix_Inocian ) } } . ?n rdf:type ontology:city }
[]
city
Q17042 Q285488
SYSTEM
Oakland, Iligan
Q17042 Q285488
OR((Q5336068,P19,c(Q515)), (Q6313750,P19,c(Q515)))
action filter_type
action union
action find
entity Q5336068
relation P19
action find
entity Q6313750
relation P19
type Q515
Eddie Glass or Junix Inocian were born in [ANSWERS]
{'OR': [['Q5336068', 'P19', {'concept': 'Q515'}], ['Q6313750', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?n WHERE { { ?d property:P19 ?n . VALUES ( ?d ) { ( resource:Q5336068 ) ( resource:Q6313750 ) } } . ?n rdf:type ontology:Q515 }
Oakland Iligan
Eddie Glass or Junix Inocian were born in Oakland and Iligan
Oakland Iligan
action filter_type
action union
action find
entity Eddie Glass
relation place of birth
action find
entity Junix Inocian
relation place of birth
type city
{'OR': [['Eddie Glass', 'place of birth', {'concept': 'city'}], ['Junix Inocian', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?n WHERE { { ?d property:place_of_birth ?n . VALUES ( ?d ) { ( resource:Eddie_Glass ) ( resource:Junix_Inocian ) } } . ?n rdf:type ontology:city }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that city present in ?
(Q285488,P17,c(Q15617994))
['Q285488', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q285488 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Iligan', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Iligan property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q285488
SYSTEM
Did you mean Iligan ?
(Q17042,P17,c(Q15617994)) (Q285488,P17,c(Q15617994))
[ANSWER]
['Q17042', 'P17', {'concept': 'Q15617994'}] ['Q285488', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q285488 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Iligan ?
Iligan
['Oakland', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Iligan', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Iligan property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q285488,P17,c(Q15617994))
['Q285488', 'P17', {'concept': 'Q15617994'}]
['Iligan', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q928
(Q285488,P17,c(Q15617994))
[ANSWER]
['Q285488', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q285488 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Philippines
1
['Iligan', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Iligan property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5336068
P264
Q334453
USER
Which division sponsored the recording of Eddie Glass ?
(Q5336068,P264,c(Q334453))
action filter_type
action find
entity Q5336068
relation P264
type Q334453
['Q5336068', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?y WHERE { resource:Q5336068 property:P264 ?y . ?y rdf:type ontology:Q334453 }
Eddie Glass
action filter_type
action find
entity Eddie Glass
relation record label
type division
['Eddie Glass', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?y WHERE { resource:Eddie_Glass property:record_label ?y . ?y rdf:type ontology:division }
[]
division
Q3833296
SYSTEM
Liquor and Poker Music
Q3833296
(Q5336068,P264,c(Q334453))
action filter_type
action find
entity Q5336068
relation P264
type Q334453
[ANSWER] sponsored the recording of Eddie Glass
['Q5336068', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?y WHERE { resource:Q5336068 property:P264 ?y . ?y rdf:type ontology:Q334453 }
Liquor and Poker Music
Liquor and Poker Music sponsored the recording of Eddie Glass
Liquor and Poker Music
action filter_type
action find
entity Eddie Glass
relation record label
type division
['Eddie Glass', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?y WHERE { resource:Eddie_Glass property:record_label ?y . ?y rdf:type ontology:division }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q162880
P609
Q515 Q34442 Q83620
USER
How many cities are the destination of around the same number of roads and thoroughfares as Dezhou ?
(c(Q34442)|c(Q83620),P609,c(Q515))
action count
action approx
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 Q162880
relation P609
type Q34442
type Q83620
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?a ) WHERE { { ?k property:P609 ?h . ?h rdf:type ontology:Q515 . ?k rdf:type ontology:Q34442 } UNION { ?h rdf:type ontology:Q515 . ?k rdf:type ontology:Q83620 . ?k property:P609 ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:P609 resource:Q162880 . { VALUES ( ?r ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } . ?q rdf:type ?r } } } . FILTER ( ?a = ?u ) }
Dezhou
action count
action approx
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 Dezhou
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?a ) WHERE { { ?k property:terminus_location ?h . ?h rdf:type ontology:city . ?k rdf:type ontology:road } UNION { ?h rdf:type ontology:city . ?k rdf:type ontology:thoroughfare . ?k property:terminus_location ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:terminus_location resource:Dezhou . { VALUES ( ?r ) { ( ontology:thoroughfare ) ( ontology:road ) } . ?q rdf:type ?r } } } . FILTER ( ?a = ?u ) }
[]
city road thoroughfare
SYSTEM
71
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(Q34442)|c(Q83620),P609,c(Q515))
action count
action approx
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 Q162880
relation P609
type Q34442
type Q83620
[ANSWER]
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?a ) WHERE { { ?k property:P609 ?h . ?h rdf:type ontology:Q515 . ?k rdf:type ontology:Q34442 } UNION { ?h rdf:type ontology:Q515 . ?k rdf:type ontology:Q83620 . ?k property:P609 ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:P609 resource:Q162880 . { VALUES ( ?r ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } . ?q rdf:type ?r } } } . FILTER ( ?a = ?u ) }
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
71
action count
action approx
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 Dezhou
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?a ) WHERE { { ?k property:terminus_location ?h . ?h rdf:type ontology:city . ?k rdf:type ontology:road } UNION { ?h rdf:type ontology:city . ?k rdf:type ontology:thoroughfare . ?k property:terminus_location ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:terminus_location resource:Dezhou . { VALUES ( ?r ) { ( ontology:thoroughfare ) ( ontology:road ) } . ?q rdf:type ?r } } } . FILTER ( ?a = ?u ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q570768
P609
Q515 Q34442 Q83620
USER
And also tell me about Wuhai?
(c(Q34442)|c(Q83620),P609,c(Q515))
action count
action approx
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 Q570768
relation P609
type Q34442
type Q83620
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?i WHERE { ?j rdf:type ?m . VALUES ( ?m ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { { ?w rdf:type ontology:Q83620 } UNION { ?w rdf:type ontology:Q34442 } } . ?w property:P609 resource:Q570768 } } . FILTER ( ?u = ?z ) }
Wuhai
action count
action approx
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 Wuhai
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?i WHERE { ?j rdf:type ?m . VALUES ( ?m ) { ( ontology:thoroughfare ) ( ontology:road ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { { ?w rdf:type ontology:thoroughfare } UNION { ?w rdf:type ontology:road } } . ?w property:terminus_location resource:Wuhai } } . FILTER ( ?u = ?z ) }
[]
city road thoroughfare
SYSTEM
71
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(Q34442)|c(Q83620),P609,c(Q515))
action count
action approx
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 Q570768
relation P609
type Q34442
type Q83620
[ANSWER]
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?i WHERE { ?j rdf:type ?m . VALUES ( ?m ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { { ?w rdf:type ontology:Q83620 } UNION { ?w rdf:type ontology:Q34442 } } . ?w property:P609 resource:Q570768 } } . FILTER ( ?u = ?z ) }
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
71
action count
action approx
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 Wuhai
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?i WHERE { ?j rdf:type ?m . VALUES ( ?m ) { ( ontology:thoroughfare ) ( ontology:road ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { { { ?w rdf:type ontology:thoroughfare } UNION { ?w rdf:type ontology:road } } . ?w property:terminus_location resource:Wuhai } } . FILTER ( ?u = ?z ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P355
Q334453 Q334453
USER
How many divisions are subsidiaries of atleast 1 division ?
(c(Q334453),P355,c(Q334453))
action count
action atleast
action find_reverse_tuple_counts
relation P355
type Q334453
type Q334453
value 1
[{'concept': 'Q334453'}, 'P355', {'concept': 'Q334453'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { FILTER ( ?l >= 1 ) . { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?l ) WHERE { ?i property:P355 ?c . ?c rdf:type ontology:Q334453 . ?i rdf:type ontology:Q334453 } GROUP BY ?c } }
action count
action atleast
action find_reverse_tuple_counts
relation subsidiary
type division
type division
value 1
[{'concept': 'division'}, 'subsidiary', {'concept': 'division'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { FILTER ( ?l >= 1 ) . { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?l ) WHERE { ?i property:subsidiary ?c . ?c rdf:type ontology:division . ?i rdf:type ontology:division } GROUP BY ?c } }
[]
division division
SYSTEM
28
Q21130152 Q27670061 Q2358400 Q5757199 Q1200105 Q3244698 Q165711 Q5574527 Q183387 Q8194176 Q22126104 Q3415299 Q820156 Q645889 Q2733913 Q1154245 Q770328 Q1088453 Q10831860 Q9170958 Q17211910 Q585643 Q1046066 Q4836116 Q2047343 Q13221666 Q18628 Q1072828
(c(Q334453),P355,c(Q334453))
action count
action atleast
action find_reverse_tuple_counts
relation P355
type Q334453
type Q334453
value 1
[ANSWER]
[{'concept': 'Q334453'}, 'P355', {'concept': 'Q334453'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { FILTER ( ?l >= 1 ) . { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?l ) WHERE { ?i property:P355 ?c . ?c rdf:type ontology:Q334453 . ?i rdf:type ontology:Q334453 } GROUP BY ?c } }
RCA Italy PolyGram Records, Inc. Legacy Recordings High Street Records J Storm Sony Music Latin Sire Records Go! Beat Records Columbia Records Starchild Evil Line Records RPM Records Meteor Records Reprise Records Deram Records Rhythm Zone Aniplex Chrysalis Records Warner Music Finland EMI Music Poland Sistus Records Atco Records Fueled By Ramen BNA Records Flair Records Double Six Records Roadrunner Records Ki/oon Music
28
action count
action atleast
action find_reverse_tuple_counts
relation subsidiary
type division
type division
value 1
[{'concept': 'division'}, 'subsidiary', {'concept': 'division'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { FILTER ( ?l >= 1 ) . { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?l ) WHERE { ?i property:subsidiary ?c . ?c rdf:type ontology:division . ?i rdf:type ontology:division } GROUP BY ?c } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q13220204 Q486972 Q515
USER
Which cities are partner town of max number of administrative country subdivisions and human settlements ?
(c(Q515),P190,c(Q13220204)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P190
type Q515
type Q13220204
action find_tuple_counts
relation P190
type Q515
type Q486972
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q13220204'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?r ) WHERE { { ?a property:P190 ?t . ?a rdf:type ontology:Q515 . ?t rdf:type ontology:Q13220204 } UNION { ?a property:P190 ?t . ?a rdf:type ontology:Q515 . ?t rdf:type ontology:Q486972 } } GROUP BY ?a } } . FILTER ( ?d = ?j ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?d ) WHERE { { ?n property:P190 ?k . ?k rdf:type ontology:Q486972 . ?n rdf:type ontology:Q515 } UNION { ?n rdf:type ontology:Q515 . ?k rdf:type ontology:Q13220204 . ?n property:P190 ?k } } GROUP BY ?n } }
action argmax
action union
action find_tuple_counts
relation sister city
type city
type second-level administrative country subdivision
action find_tuple_counts
relation sister city
type city
type human settlement
[{'concept': 'city'}, 'sister city', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?r ) WHERE { { ?a property:sister_city ?t . ?a rdf:type ontology:city . ?t rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?a property:sister_city ?t . ?a rdf:type ontology:city . ?t rdf:type ontology:human_settlement } } GROUP BY ?a } } . FILTER ( ?d = ?j ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?d ) WHERE { { ?n property:sister_city ?k . ?k rdf:type ontology:human_settlement . ?n rdf:type ontology:city } UNION { ?n rdf:type ontology:city . ?k rdf:type ontology:second-level_administrative_country_subdivision . ?n property:sister_city ?k } } GROUP BY ?n } }
[]
second-level administrative country subdivision human settlement city
Q8652
SYSTEM
Miami
Q8652
(c(Q515),P190,c(Q13220204)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P190
type Q515
type Q13220204
action find_tuple_counts
relation P190
type Q515
type Q486972
[ANSWER] is partner town of max number of administrative country subdivisions and human settlements
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q13220204'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?r ) WHERE { { ?a property:P190 ?t . ?a rdf:type ontology:Q515 . ?t rdf:type ontology:Q13220204 } UNION { ?a property:P190 ?t . ?a rdf:type ontology:Q515 . ?t rdf:type ontology:Q486972 } } GROUP BY ?a } } . FILTER ( ?d = ?j ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?d ) WHERE { { ?n property:P190 ?k . ?k rdf:type ontology:Q486972 . ?n rdf:type ontology:Q515 } UNION { ?n rdf:type ontology:Q515 . ?k rdf:type ontology:Q13220204 . ?n property:P190 ?k } } GROUP BY ?n } }
Miami
Miami is partner town of max number of administrative country subdivisions and human settlements
Miami
action argmax
action union
action find_tuple_counts
relation sister city
type city
type second-level administrative country subdivision
action find_tuple_counts
relation sister city
type city
type human settlement
[{'concept': 'city'}, 'sister city', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?r ) WHERE { { ?a property:sister_city ?t . ?a rdf:type ontology:city . ?t rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?a property:sister_city ?t . ?a rdf:type ontology:city . ?t rdf:type ontology:human_settlement } } GROUP BY ?a } } . FILTER ( ?d = ?j ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?d ) WHERE { { ?n property:sister_city ?k . ?k rdf:type ontology:human_settlement . ?n rdf:type ontology:city } UNION { ?n rdf:type ontology:city . ?k rdf:type ontology:second-level_administrative_country_subdivision . ?n property:sister_city ?k } } GROUP BY ?n } }
[]