Simple Question (Direct)
Simple Question
Q2092409
P19
Q13220204
USER
Which administrative country subdivision was Juan Fernando Quintero born in ?
(Q2092409,P19,c(Q13220204))
action filter_type
action find
entity Q2092409
relation P19
type Q13220204
['Q2092409', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?t WHERE { resource:Q2092409 property:P19 ?t . ?t rdf:type ontology:Q13220204 }
Juan Fernando Quintero
action filter_type
action find
entity Juan Fernando Quintero
relation place of birth
type second-level administrative country subdivision
['Juan Fernando Quintero', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?t WHERE { resource:Juan_Fernando_Quintero property:place_of_birth ?t . ?t rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q62823
SYSTEM
Barranquilla
Q62823
(Q2092409,P19,c(Q13220204))
action filter_type
action find
entity Q2092409
relation P19
type Q13220204
Which administrative country subdivision was Juan Fernando Quintero born in
['Q2092409', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?t WHERE { resource:Q2092409 property:P19 ?t . ?t rdf:type ontology:Q13220204 }
Barranquilla
Which administrative country subdivision was Juan Fernando Quintero born in
Barranquilla
action filter_type
action find
entity Juan Fernando Quintero
relation place of birth
type second-level administrative country subdivision
['Juan Fernando Quintero', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?t WHERE { resource:Juan_Fernando_Quintero property:place_of_birth ?t . ?t rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q62823
P931
Q62447
USER
Which aerodrome serves that administrative country subdivision ?
(c(Q62447),P931,Q62823)
action filter_type
action find_reverse
entity Q62823
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q62823']
SELECT DISTINCT ?w WHERE { ?w property:P931 resource:Q62823 . ?w rdf:type ontology:Q62447 }
Barranquilla
action filter_type
action find_reverse
entity Barranquilla
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Barranquilla']
SELECT DISTINCT ?w WHERE { ?w property:place_served_by_airport resource:Barranquilla . ?w rdf:type ontology:aerodrome }
[]
aerodrome
Q645151
SYSTEM
Ernesto Cortissoz International Airport
Q645151
(c(Q62447),P931,Q62823)
action filter_type
action find_reverse
entity Q62823
relation P931
type Q62447
[ANSWER] serves that administrative country subdivision
[{'concept': 'Q62447'}, 'P931', 'Q62823']
SELECT DISTINCT ?w WHERE { ?w property:P931 resource:Q62823 . ?w rdf:type ontology:Q62447 }
Ernesto Cortissoz International Airport
Ernesto Cortissoz International Airport serves that administrative country subdivision
Ernesto Cortissoz International Airport
action filter_type
action find_reverse
entity Barranquilla
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Barranquilla']
SELECT DISTINCT ?w WHERE { ?w property:place_served_by_airport resource:Barranquilla . ?w rdf:type ontology:aerodrome }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q62823
P47
Q13220204
USER
Who share the border with Barranquilla ?
(Q62823,P47,c(Q13220204))
action filter_type
action find
entity Q62823
relation P47
type Q13220204
['Q62823', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ?l WHERE { resource:Q62823 property:P47 ?l . ?l rdf:type ontology:Q13220204 }
Barranquilla
action filter_type
action find
entity Barranquilla
relation shares border with
type second-level administrative country subdivision
['Barranquilla', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?l WHERE { resource:Barranquilla property:shares_border_with ?l . ?l rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q2307260 Q767071 Q1441228
SYSTEM
Galapa, Atlántico, Soledad, Atlántico, Sitionuevo
Q2307260 Q767071 Q1441228 Q2186176
(Q62823,P47,c(Q13220204))
action filter_type
action find
entity Q62823
relation P47
type Q13220204
[ANSWERS] share the border with Barranquilla
['Q62823', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ?l WHERE { resource:Q62823 property:P47 ?l . ?l rdf:type ontology:Q13220204 }
Galapa, Atlántico Soledad, Atlántico Sitionuevo Puerto Colombia
Galapa, Atlántico, Soledad, Atlántico and Sitionuevo share the border with Barranquilla
Galapa, Atlántico Soledad, Atlántico Sitionuevo
action filter_type
action find
entity Barranquilla
relation shares border with
type second-level administrative country subdivision
['Barranquilla', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?l WHERE { resource:Barranquilla property:shares_border_with ?l . ?l rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2307260 Q767071 Q1441228
P17
Q15617994
USER
Which administrative territories do Galapa, Atlántico, Soledad, Atlántico and Sitionuevo belong to ?
(Q2307260,P17,c(Q15617994)) (Q767071,P17,c(Q15617994)) (Q1441228,P17,c(Q15617994))
action union
action filter_type
action find
entity Q2307260
relation P17
type Q15617994
action filter_type
action find
entity Q767071
relation P17
type Q15617994
action filter_type
action find
entity Q1441228
relation P17
type Q15617994
['Q2307260', 'P17', {'concept': 'Q15617994'}] ['Q767071', 'P17', {'concept': 'Q15617994'}] ['Q1441228', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { resource:Q2307260 property:P17 ?e . ?e rdf:type ontology:Q15617994 } UNION { ?e rdf:type ontology:Q15617994 . resource:Q767071 property:P17 ?e } }
Galapa, Atlántico Soledad, Atlántico Sitionuevo
action union
action filter_type
action find
entity Galapa, Atlántico
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Soledad, Atlántico
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Sitionuevo
relation country
type designation for an administrative territorial entity
['Galapa, Atlántico', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Soledad, Atlántico', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Sitionuevo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { resource:Galapa,_Atlántico property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Soledad,_Atlántico property:country ?e } }
[]
designation for an administrative territorial entity
Q739 Q739 Q739
SYSTEM
Colombia
Q739 Q739 Q739
(Q2307260,P17,c(Q15617994)) (Q767071,P17,c(Q15617994)) (Q1441228,P17,c(Q15617994))
action union
action filter_type
action find
entity Q2307260
relation P17
type Q15617994
action filter_type
action find
entity Q767071
relation P17
type Q15617994
action filter_type
action find
entity Q1441228
relation P17
type Q15617994
[ANSWER], [ANSWER] and [ANSWER] Galapa, Atlántico, Soledad, Atlántico and Sitionuevo belong to
['Q2307260', 'P17', {'concept': 'Q15617994'}] ['Q767071', 'P17', {'concept': 'Q15617994'}] ['Q1441228', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { resource:Q2307260 property:P17 ?e . ?e rdf:type ontology:Q15617994 } UNION { ?e rdf:type ontology:Q15617994 . resource:Q767071 property:P17 ?e } }
Colombia Colombia Colombia
Colombia, Colombia and Colombia Galapa, Atlántico, Soledad, Atlántico and Sitionuevo belong to
Colombia Colombia Colombia
action union
action filter_type
action find
entity Galapa, Atlántico
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Soledad, Atlántico
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Sitionuevo
relation country
type designation for an administrative territorial entity
['Galapa, Atlántico', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Soledad, Atlántico', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Sitionuevo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { resource:Galapa,_Atlántico property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Soledad,_Atlántico property:country ?e } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories share the border with that administrative territory ?
(Q739,P47,c(Q15617994))
['Q739', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q20634432 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
['Colombia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Colombia property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q739
SYSTEM
Did you mean Colombia ?
(Q739,P47,c(Q15617994)) (Q739,P47,c(Q15617994)) (Q739,P47,c(Q15617994))
[ANSWER]
['Q739', 'P47', {'concept': 'Q15617994'}] ['Q739', 'P47', {'concept': 'Q15617994'}] ['Q739', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q20634432 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Colombia ?
Colombia
['Colombia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Colombia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Colombia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Colombia property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q739,P47,c(Q15617994))
['Q739', 'P47', {'concept': 'Q15617994'}]
['Colombia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
6
Q804 Q717 Q811 Q155 Q736 Q419
(Q739,P47,c(Q15617994))
[ANSWER]
['Q739', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q20634432 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Panama Venezuela Nicaragua Brazil Ecuador Peru
6
['Colombia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Colombia property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q252098
P190
Q13220204 Q56061 Q515
USER
Which administrative country subdivisions are sister towns of more number of administrative territories or cities than New Belgrade ?
(c(Q56061)|c(Q515),P190,c(Q13220204))
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q56061
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q515
action count
action filter_multi_types
action find_reverse
entity Q252098
relation P190
type Q56061
type Q515
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?p ) WHERE { { ?r property:P190 ?i . ?r rdf:type ontology:Q56061 . ?i rdf:type ontology:Q13220204 } UNION { ?r property:P190 ?i . ?i rdf:type ontology:Q13220204 . ?r rdf:type ontology:Q515 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:P190 resource:Q252098 . { ?x rdf:type ?e . VALUES ( ?e ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } } } . FILTER ( ?p > ?g ) }
New Belgrade
action greater
action union
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type city
action count
action filter_multi_types
action find_reverse
entity New Belgrade
relation sister city
type administrative territorial entity
type city
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?p ) WHERE { { ?r property:sister_city ?i . ?r rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?r property:sister_city ?i . ?i rdf:type ontology:second-level_administrative_country_subdivision . ?r rdf:type ontology:city } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:sister_city resource:New_Belgrade . { ?x rdf:type ?e . VALUES ( ?e ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } } } . FILTER ( ?p > ?g ) }
[]
second-level administrative country subdivision administrative territorial entity city
Q9772 Q9899 Q600871
SYSTEM
Meerssen, Amsterdam, Overbetuwe
Q622819 Q101341 Q193677 Q57919 Q2372 Q57076 Q966804 Q729447 Q3370 Q197050 Q5707 Q109483 Q192119 Q65268 Q1719466 Q56869 Q107392 Q192606 Q1013628 Q209016 Q7903 Q69783 Q63946 Q927703 Q990448 Q5420 Q731915 Q25444 Q9772 Q450625 Q157144 Q48278 Q564813 Q995055 Q156711 Q1663 Q252205 Q565726 Q183394 Q46001 Q600871 Q208499 Q33292 Q2047414 Q189419 Q200459 Q926700 Q657461 Q64873 Q60453 Q917313 Q1640 Q9899 Q744247 Q1647 Q157137 Q684630 Q64051 Q971700 Q43595 Q1010468 Q760224 Q291333 Q4191 Q179948 Q1011275 Q108025 Q395919 Q235190 Q108988 Q732986 Q758578 Q21194 Q156724 Q917535 Q208764 Q9873 Q68097 Q404261 Q158923 Q108031 Q157055 Q157053 Q2933 Q107135 Q62266 Q1435 Q156732 Q156739 Q9970 Q889530 Q33349 Q1722 Q652130 Q2841 Q146456 Q3348885 Q732548 Q62823 Q579984 Q9938 Q189161 Q271922 Q104095 Q1146805 Q617416 Q543542 Q157725 Q972 Q36167 Q851399 Q69114 Q69693 Q109021 Q990385 Q217394
(c(Q56061)|c(Q515),P190,c(Q13220204))
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q56061
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q515
action count
action filter_multi_types
action find_reverse
entity Q252098
relation P190
type Q56061
type Q515
[ANSWERS] are sister towns of more number of administrative territories or cities than New Belgrade
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?p ) WHERE { { ?r property:P190 ?i . ?r rdf:type ontology:Q56061 . ?i rdf:type ontology:Q13220204 } UNION { ?r property:P190 ?i . ?i rdf:type ontology:Q13220204 . ?r rdf:type ontology:Q515 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:P190 resource:Q252098 . { ?x rdf:type ?e . VALUES ( ?e ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } } } . FILTER ( ?p > ?g ) }
Portalegre, Portugal Lillehammer Angra do Heroísmo Arendal Kragerø Bærum Aleksinac Dobele Zadar Zevenaar Bjelovar Kristiansund Sisak Brienz Panevėžys Asker Tønsberg Leskovac Nisa Municipality Santa Marta Casablanca Münsingen Yverdon-les-Bains Santa Fe de Antioquia Seixal Municipality Varaždin Ogre Funchal Meerssen Alytus Vinnytsia Antioquia - Medellín Santa Maria da Feira Municipality Velika Plana Uzhhorod Split Árborg Povoação Vagharshapat Alushta Overbetuwe Uman Berdiansk Palanga Zemun Póvoa de Varzim Oeiras Cartagena Illnau-Effretikon Coevorden Vila do Conde Osijek Amsterdam Saldus Rijeka Kryvyi Rih Bač, Serbia Monthey Stari Grad, Belgrade Cotonou Velas Hola Prystan Alūksne Lucerne Évora Knjaževac Sarpsborg Anadia Manizales Kongsberg Salaspils Auce Vũng Tàu Kremenchuk Loures Katwijk Valkenswaard Davos Ovar Stryi Gjøvik Cherkasy Chernihiv Asunción Fredrikstad Ålesund Zagreb Kherson Rivne Velsen Chornomorsk Melitopol Dubrovnik Reykjanesbær Bogotá Mukacheve Sintra Municipality Lagos Barranquilla Temerin Hoorn Trogir Sremski Karlovci Molde Fjarðabyggð Kovin Portimão Chernivtsi Alkmaar Huế Strenči Trubschachen Saas-Fee Moss Horta Barreiro
Meerssen, Amsterdam and Overbetuwe are sister towns of more number of administrative territories or cities than New Belgrade
Meerssen Amsterdam Overbetuwe
action greater
action union
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type city
action count
action filter_multi_types
action find_reverse
entity New Belgrade
relation sister city
type administrative territorial entity
type city
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?p ) WHERE { { ?r property:sister_city ?i . ?r rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?r property:sister_city ?i . ?i rdf:type ontology:second-level_administrative_country_subdivision . ?r rdf:type ontology:city } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:sister_city resource:New_Belgrade . { ?x rdf:type ?e . VALUES ( ?e ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } } } . FILTER ( ?p > ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q90595
P190
Q13220204 Q56061 Q515
USER
And what about Risør?
(c(Q56061)|c(Q515),P190,c(Q13220204))
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q56061
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q515
action count
action filter_multi_types
action find_reverse
entity Q90595
relation P190
type Q56061
type Q515
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) ?e WHERE { VALUES ( ?f ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?a rdf:type ?f } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { ?v rdf:type ?g . VALUES ( ?g ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } . ?v property:P190 resource:Q90595 } } . FILTER ( ?t > ?w ) }
Risør
action greater
action union
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type city
action count
action filter_multi_types
action find_reverse
entity Risør
relation sister city
type administrative territorial entity
type city
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) ?e WHERE { VALUES ( ?f ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?a rdf:type ?f } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { ?v rdf:type ?g . VALUES ( ?g ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } . ?v property:sister_city resource:Risør } } . FILTER ( ?t > ?w ) }
[]
second-level administrative country subdivision administrative territorial entity city
Q9772 Q9899 Q600871
SYSTEM
Meerssen, Amsterdam, Overbetuwe
Q622819 Q101341 Q193677 Q57919 Q2372 Q57076 Q966804 Q729447 Q3370 Q197050 Q5707 Q109483 Q192119 Q65268 Q1719466 Q56869 Q107392 Q192606 Q1013628 Q209016 Q7903 Q69783 Q63946 Q927703 Q990448 Q5420 Q731915 Q25444 Q9772 Q450625 Q157144 Q48278 Q564813 Q995055 Q156711 Q1663 Q252205 Q565726 Q183394 Q46001 Q600871 Q208499 Q33292 Q2047414 Q189419 Q200459 Q926700 Q657461 Q64873 Q60453 Q917313 Q1640 Q9899 Q744247 Q1647 Q157137 Q684630 Q64051 Q971700 Q43595 Q1010468 Q760224 Q291333 Q4191 Q179948 Q1011275 Q108025 Q395919 Q235190 Q108988 Q732986 Q758578 Q21194 Q156724 Q917535 Q208764 Q9873 Q68097 Q404261 Q158923 Q108031 Q157055 Q157053 Q2933 Q107135 Q62266 Q1435 Q156732 Q156739 Q9970 Q889530 Q33349 Q1722 Q652130 Q2841 Q146456 Q3348885 Q732548 Q62823 Q579984 Q9938 Q189161 Q271922 Q104095 Q1146805 Q617416 Q543542 Q157725 Q972 Q36167 Q851399 Q69114 Q69693 Q109021 Q990385 Q217394
(c(Q56061)|c(Q515),P190,c(Q13220204))
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q56061
action find_reverse_tuple_counts
relation P190
type Q13220204
type Q515
action count
action filter_multi_types
action find_reverse
entity Q90595
relation P190
type Q56061
type Q515
[ANSWERS]
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) ?e WHERE { VALUES ( ?f ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?a rdf:type ?f } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { ?v rdf:type ?g . VALUES ( ?g ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } . ?v property:P190 resource:Q90595 } } . FILTER ( ?t > ?w ) }
Portalegre, Portugal Lillehammer Angra do Heroísmo Arendal Kragerø Bærum Aleksinac Dobele Zadar Zevenaar Bjelovar Kristiansund Sisak Brienz Panevėžys Asker Tønsberg Leskovac Nisa Municipality Santa Marta Casablanca Münsingen Yverdon-les-Bains Santa Fe de Antioquia Seixal Municipality Varaždin Ogre Funchal Meerssen Alytus Vinnytsia Antioquia - Medellín Santa Maria da Feira Municipality Velika Plana Uzhhorod Split Árborg Povoação Vagharshapat Alushta Overbetuwe Uman Berdiansk Palanga Zemun Póvoa de Varzim Oeiras Cartagena Illnau-Effretikon Coevorden Vila do Conde Osijek Amsterdam Saldus Rijeka Kryvyi Rih Bač, Serbia Monthey Stari Grad, Belgrade Cotonou Velas Hola Prystan Alūksne Lucerne Évora Knjaževac Sarpsborg Anadia Manizales Kongsberg Salaspils Auce Vũng Tàu Kremenchuk Loures Katwijk Valkenswaard Davos Ovar Stryi Gjøvik Cherkasy Chernihiv Asunción Fredrikstad Ålesund Zagreb Kherson Rivne Velsen Chornomorsk Melitopol Dubrovnik Reykjanesbær Bogotá Mukacheve Sintra Municipality Lagos Barranquilla Temerin Hoorn Trogir Sremski Karlovci Molde Fjarðabyggð Kovin Portimão Chernivtsi Alkmaar Huế Strenči Trubschachen Saas-Fee Moss Horta Barreiro
Meerssen Amsterdam Overbetuwe
action greater
action union
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type second-level administrative country subdivision
type city
action count
action filter_multi_types
action find_reverse
entity Risør
relation sister city
type administrative territorial entity
type city
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) ?e WHERE { VALUES ( ?f ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?a rdf:type ?f } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { ?v rdf:type ?g . VALUES ( ?g ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } . ?v property:sister_city resource:Risør } } . FILTER ( ?t > ?w ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q739 Q664
P530
Q15617994
USER
How many administrative territories have diplomatic relations with Colombia and New Zealand ?
(c(Q15617994),P530,Q739) (c(Q15617994),P530,Q664)
action count
action intersection
action filter_type
action find_reverse
entity Q739
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q664
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q739'] [{'concept': 'Q15617994'}, 'P530', 'Q664']
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:P530 resource:Q664 . ?q rdf:type ontology:Q15617994 . ?q property:P530 resource:Q739 . ?q rdf:type ontology:Q15617994 }
Colombia New Zealand
action count
action intersection
action filter_type
action find_reverse
entity Colombia
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity New Zealand
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Colombia'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'New Zealand']
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:diplomatic_relation resource:New_Zealand . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:diplomatic_relation resource:Colombia . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
2
Q38 Q230
(c(Q15617994),P530,Q739) (c(Q15617994),P530,Q664)
action count
action intersection
action filter_type
action find_reverse
entity Q739
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q664
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q739'] [{'concept': 'Q15617994'}, 'P530', 'Q664']
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:P530 resource:Q664 . ?q rdf:type ontology:Q15617994 . ?q property:P530 resource:Q739 . ?q rdf:type ontology:Q15617994 }
Italy Georgia
2
action count
action intersection
action filter_type
action find_reverse
entity Colombia
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity New Zealand
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Colombia'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'New Zealand']
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:diplomatic_relation resource:New_Zealand . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:diplomatic_relation resource:Colombia . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q9899 Q914120
P1001
Q12737077
USER
How many occupations have control over the jurisdiction of Amsterdam or San Pedro del Monte de Oro ?
(c(Q12737077),P1001,Q9899) (c(Q12737077),P1001,Q914120)
action count
action union
action filter_type
action find_reverse
entity Q9899
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q914120
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q9899'] [{'concept': 'Q12737077'}, 'P1001', 'Q914120']
SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { VALUES ( ?n ) { ( resource:Q9899 ) ( resource:Q914120 ) } . ?v property:P1001 ?n }
Amsterdam San Pedro del Monte de Oro
action count
action union
action filter_type
action find_reverse
entity Amsterdam
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity San Pedro del Monte de Oro
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Amsterdam'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'San Pedro del Monte de Oro']
SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { VALUES ( ?n ) { ( resource:Amsterdam ) ( resource:San_Pedro_del_Monte_de_Oro ) } . ?v property:applies_to_jurisdiction ?n }
[]
occupation
SYSTEM
4
Q13423495 Q20205040 Q26945315 Q20194364
(c(Q12737077),P1001,Q9899) (c(Q12737077),P1001,Q914120)
action count
action union
action filter_type
action find_reverse
entity Q9899
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q914120
relation P1001
type Q12737077
[ANSWER]
[{'concept': 'Q12737077'}, 'P1001', 'Q9899'] [{'concept': 'Q12737077'}, 'P1001', 'Q914120']
SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { VALUES ( ?n ) { ( resource:Q9899 ) ( resource:Q914120 ) } . ?v property:P1001 ?n }
Mayor of Amsterdam municipal councillor of Amsterdam cardinal of San Pedro del Monte de Oro municipal executive of Amsterdam
4
action count
action union
action filter_type
action find_reverse
entity Amsterdam
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity San Pedro del Monte de Oro
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Amsterdam'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'San Pedro del Monte de Oro']
SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { VALUES ( ?n ) { ( resource:Amsterdam ) ( resource:San_Pedro_del_Monte_de_Oro ) } . ?v property:applies_to_jurisdiction ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q739
P163
Q14660
USER
What is the name of flag associated with Colombia ?
(Q739,P163,c(Q14660))
action filter_type
action find
entity Q739
relation P163
type Q14660
['Q739', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?g WHERE { resource:Q739 property:P163 ?g . ?g rdf:type ontology:Q14660 }
Colombia
action filter_type
action find
entity Colombia
relation flag
type flag
['Colombia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?g WHERE { resource:Colombia property:flag ?g . ?g rdf:type ontology:flag }
[]
flag
Q160425
SYSTEM
flag of Colombia
Q160425
(Q739,P163,c(Q14660))
action filter_type
action find
entity Q739
relation P163
type Q14660
The name of flag associated with Colombia is the [ANSWER]
['Q739', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?g WHERE { resource:Q739 property:P163 ?g . ?g rdf:type ontology:Q14660 }
flag of Colombia
The name of flag associated with Colombia is the flag of Colombia
flag of Colombia
action filter_type
action find
entity Colombia
relation flag
type flag
['Colombia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?g WHERE { resource:Colombia property:flag ?g . ?g rdf:type ontology:flag }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q160425 Q502700
P1001
Q15617994
USER
Does Diebach belong to jurisdiction of that flag ?
(Q160425,P1001,Q502700)
action is_in
entity Q502700
action find
entity Q160425
relation P1001
['Q160425', 'P1001', 'Q502700']
ASK WHERE { resource:Q160425 property:P1001 resource:Q502700 }
flag of Colombia Diebach
action is_in
entity Diebach
action find
entity flag of Colombia
relation applies to jurisdiction
['flag of Colombia', 'applies to jurisdiction', 'Diebach']
ASK WHERE { resource:flag_of_Colombia property:applies_to_jurisdiction resource:Diebach }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q160425,P1001,Q502700)
action is_in
entity Q502700
action find
entity Q160425
relation P1001
[ANSWER]
['Q160425', 'P1001', 'Q502700']
ASK WHERE { resource:Q160425 property:P1001 resource:Q502700 }
No
action is_in
entity Diebach
action find
entity flag of Colombia
relation applies to jurisdiction
['flag of Colombia', 'applies to jurisdiction', 'Diebach']
ASK WHERE { resource:flag_of_Colombia property:applies_to_jurisdiction resource:Diebach }
[]