Simple Question (Direct)
Simple Question
Q658012
P364
Q34770
USER
Which language was used originally for the creation of Carancho ?
(Q658012,P364,c(Q34770))
action filter_type
action find
entity Q658012
relation P364
type Q34770
['Q658012', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q658012 property:P364 ?x . ?x rdf:type ontology:Q34770 }
Carancho
action filter_type
action find
entity Carancho
relation original language of work
type language
['Carancho', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:Carancho property:original_language_of_work ?x . ?x rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q658012,P364,c(Q34770))
action filter_type
action find
entity Q658012
relation P364
type Q34770
[ANSWER] was used originally for the creation of Carancho
['Q658012', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q658012 property:P364 ?x . ?x rdf:type ontology:Q34770 }
Spanish
Spanish was used originally for the creation of Carancho
Spanish
action filter_type
action find
entity Carancho
relation original language of work
type language
['Carancho', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:Carancho property:original_language_of_work ?x . ?x rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q658012
P915
Q515
USER
Where was Carancho filmed ?
(Q658012,P915,c(Q515))
action filter_type
action find
entity Q658012
relation P915
type Q515
['Q658012', 'P915', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q515 . resource:Q658012 property:P915 ?e }
Carancho
action filter_type
action find
entity Carancho
relation filming location
type city
['Carancho', 'filming location', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:city . resource:Carancho property:filming_location ?e }
[]
city
Q1486
SYSTEM
Buenos Aires
Q1486
(Q658012,P915,c(Q515))
action filter_type
action find
entity Q658012
relation P915
type Q515
Carancho was filmed in [ANSWER]
['Q658012', 'P915', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q515 . resource:Q658012 property:P915 ?e }
Buenos Aires
Carancho was filmed in Buenos Aires
Buenos Aires
action filter_type
action find
entity Carancho
relation filming location
type city
['Carancho', 'filming location', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:city . resource:Carancho property:filming_location ?e }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7124875
Q515
USER
And how about Pained?
(Q7124875,P915,c(Q515))
action filter_type
action find
entity Q7124875
relation P915
type Q515
['Q7124875', 'P915', {'concept': 'Q515'}]
SELECT DISTINCT ?j WHERE { resource:Q7124875 property:P915 ?j . ?j rdf:type ontology:Q515 }
Pained
action filter_type
action find
entity Pained
relation filming location
type city
['Pained', 'filming location', {'concept': 'city'}]
SELECT DISTINCT ?j WHERE { resource:Pained property:filming_location ?j . ?j rdf:type ontology:city }
[]
city
Q8684
SYSTEM
Seoul
Q8684
(Q7124875,P915,c(Q515))
action filter_type
action find
entity Q7124875
relation P915
type Q515
[ANSWER]
['Q7124875', 'P915', {'concept': 'Q515'}]
SELECT DISTINCT ?j WHERE { resource:Q7124875 property:P915 ?j . ?j rdf:type ontology:Q515 }
Seoul
Seoul
action filter_type
action find
entity Pained
relation filming location
type city
['Pained', 'filming location', {'concept': 'city'}]
SELECT DISTINCT ?j WHERE { resource:Pained property:filming_location ?j . ?j rdf:type ontology:city }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q10544
P1376
Q1048835 Q515
USER
Which political territories have greater number of cities as their capital than Munich (district) ?
(c(Q515),P1376,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action count
action filter_type
action find
entity Q10544
relation P1376
type Q1048835
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { ?m rdf:type ontology:Q1048835 . resource:Q10544 property:P1376 ?m } } . FILTER ( ?n > ?u ) . { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?n ) WHERE { ?j property:P1376 ?z . ?z rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q515 } GROUP BY ?z } }
Munich (district)
action greater
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action count
action filter_type
action find
entity Munich (district)
relation capital of
type political territorial entity
[{'concept': 'city'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { ?m rdf:type ontology:political_territorial_entity . resource:Munich_(district) property:capital_of ?m } } . FILTER ( ?n > ?u ) . { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?n ) WHERE { ?j property:capital_of ?z . ?z rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:city } GROUP BY ?z } }
[]
political territorial entity city
Q664 Q757 Q785
SYSTEM
New Zealand, Saint Vincent and the Grenadines, Jersey
Q13881 Q13882 Q13884 Q13889 Q785 Q13726 Q2051 Q3891 Q3899 Q2175 Q2271 Q48060 Q13900 Q170390 Q8170 Q168651 Q3741 Q2223 Q22880 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 greater
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action count
action filter_type
action find
entity Q10544
relation P1376
type Q1048835
[ANSWERS] have greater number of cities as their capital than Munich (district)
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { ?m rdf:type ontology:Q1048835 . resource:Q10544 property:P1376 ?m } } . FILTER ( ?n > ?u ) . { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?n ) WHERE { ?j property:P1376 ?z . ?z rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q515 } GROUP BY ?z } }
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 Electoral Palatinate 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
New Zealand, Saint Vincent and the Grenadines and Jersey have greater number of cities as their capital than Munich (district)
New Zealand Saint Vincent and the Grenadines Jersey
action greater
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action count
action filter_type
action find
entity Munich (district)
relation capital of
type political territorial entity
[{'concept': 'city'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { ?m rdf:type ontology:political_territorial_entity . resource:Munich_(district) property:capital_of ?m } } . FILTER ( ?n > ?u ) . { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?n ) WHERE { ?j property:capital_of ?z . ?z rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:city } GROUP BY ?z } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1486
P190
Q13220204 Q1048835
USER
How many administrative country subdivisions and political territories are partner towns of Buenos Aires ?
(Q1486,P190,c(Q13220204)) (Q1486,P190,c(Q1048835))
action count
action union
action filter_type
action find
entity Q1486
relation P190
type Q13220204
action filter_type
action find
entity Q1486
relation P190
type Q1048835
['Q1486', 'P190', {'concept': 'Q13220204'}] ['Q1486', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { resource:Q1486 property:P190 ?u . ?u rdf:type ontology:Q13220204 } UNION { resource:Q1486 property:P190 ?u . ?u rdf:type ontology:Q1048835 } }
Buenos Aires
action count
action union
action filter_type
action find
entity Buenos Aires
relation sister city
type second-level administrative country subdivision
action filter_type
action find
entity Buenos Aires
relation sister city
type political territorial entity
['Buenos Aires', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['Buenos Aires', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { resource:Buenos_Aires property:sister_city ?u . ?u rdf:type ontology:second-level_administrative_country_subdivision } UNION { resource:Buenos_Aires property:sister_city ?u . ?u rdf:type ontology:political_territorial_entity } }
[]
second-level administrative country subdivision political territorial entity
SYSTEM
4 administrative country subdivisions and 2 political territories
Q48278 Q62823 Q433632 Q5783 Q2841 Q1435
(Q1486,P190,c(Q13220204)) (Q1486,P190,c(Q1048835))
action count
action union
action filter_type
action find
entity Q1486
relation P190
type Q13220204
action filter_type
action find
entity Q1486
relation P190
type Q1048835
[ANSWER]
['Q1486', 'P190', {'concept': 'Q13220204'}] ['Q1486', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { resource:Q1486 property:P190 ?u . ?u rdf:type ontology:Q13220204 } UNION { resource:Q1486 property:P190 ?u . ?u rdf:type ontology:Q1048835 } }
Antioquia - Medellín Barranquilla Santa Cruz de La Palma Andalusia Bogotá Zagreb
4 administrative country subdivisions and 2 political territories
action count
action union
action filter_type
action find
entity Buenos Aires
relation sister city
type second-level administrative country subdivision
action filter_type
action find
entity Buenos Aires
relation sister city
type political territorial entity
['Buenos Aires', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['Buenos Aires', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { resource:Buenos_Aires property:sister_city ?u . ?u rdf:type ontology:second-level_administrative_country_subdivision } UNION { resource:Buenos_Aires property:sister_city ?u . ?u rdf:type ontology:political_territorial_entity } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q832967
P706
Q1048835 Q553036 Q1048835
USER
Which political territories have their location as around the same number of political territories or natural region of Germanys as Valldemossa ?
(c(Q1048835),P706,c(Q1048835)|c(Q553036))
action approx
action union
action find_tuple_counts
relation P706
type Q1048835
type Q1048835
action find_tuple_counts
relation P706
type Q1048835
type Q553036
action count
action filter_multi_types
action find
entity Q832967
relation P706
type Q1048835
type Q553036
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q553036'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) ?m WHERE { VALUES ( ?a ) { ( ontology:Q1048835 ) ( ontology:Q553036 ) } . ?x rdf:type ?a } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Q832967 property:P706 ?s . { { ?s rdf:type ontology:Q1048835 } UNION { ?s rdf:type ontology:Q553036 } } } } . FILTER ( ?z = ?i ) }
Valldemossa
action approx
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type natural region of Germany
action count
action filter_multi_types
action find
entity Valldemossa
relation located on terrain feature
type political territorial entity
type natural region of Germany
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'natural region of Germany'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) ?m WHERE { VALUES ( ?a ) { ( ontology:political_territorial_entity ) ( ontology:natural_region_of_Germany ) } . ?x rdf:type ?a } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Valldemossa property:located_on_terrain_feature ?s . { { ?s rdf:type ontology:political_territorial_entity } UNION { ?s rdf:type ontology:natural_region_of_Germany } } } } . FILTER ( ?z = ?i ) }
[]
political territorial entity natural region of Germany political territorial entity
Q691 Q769 Q766
SYSTEM
Papua New Guinea, Grenada, Jamaica
Q927498 Q6661154 Q1747689 Q983465 Q943922 Q983461 Q753702 Q950889 Q385923 Q49567 Q52626 Q13353 Q6139 Q847324 Q785 Q847321 Q850989 Q983467 Q743716 Q734805 Q904566 Q555140 Q983463 Q13737 Q493017 Q42314 Q950940 Q669078 Q851224 Q898856 Q950951 Q843868 Q945653 Q37362 Q715970 Q595424 Q168856 Q5785 Q3405693 Q7198529 Q832991 Q13751 Q13752 Q975679 Q601112 Q984496 Q743741 Q988714 Q25228 Q596885 Q941533 Q783498 Q692920 Q850939 Q988702 Q2451327 Q925773 Q851011 Q1823 Q13844 Q611123 Q233337 Q202023 Q987394 Q691 Q899884 Q837121 Q950901 Q837125 Q847317 Q983633 Q491786 Q983631 Q3724 Q983635 Q652988 Q832967 Q185409 Q769 Q170213 Q766 Q9676 Q984485 Q168159 Q983625 Q983628 Q656449 Q988688 Q18221 Q778 Q213361 Q984493 Q984491 Q984499 Q3396832 Q5700 Q988696 Q943948 Q697126 Q25305 Q616408 Q610838 Q920971
(c(Q1048835),P706,c(Q1048835)|c(Q553036))
action approx
action union
action find_tuple_counts
relation P706
type Q1048835
type Q1048835
action find_tuple_counts
relation P706
type Q1048835
type Q553036
action count
action filter_multi_types
action find
entity Q832967
relation P706
type Q1048835
type Q553036
[ANSWERS] have their location as around the same number of political territories or natural region of Germanys as Valldemossa
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q553036'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) ?m WHERE { VALUES ( ?a ) { ( ontology:Q1048835 ) ( ontology:Q553036 ) } . ?x rdf:type ?a } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Q832967 property:P706 ?s . { { ?s rdf:type ontology:Q1048835 } UNION { ?s rdf:type ontology:Q553036 } } } } . FILTER ( ?z = ?i ) }
Llucmajor Llanddeusant, Carmarthenshire Ancient Rome Santa Eulària des Riu Sineu Ferreries East New Britain Consell Alcúdia Manacor Formentera Montserrat Havelland Alaior Jersey Esporles Campanet Montuïri Campos Sant Antoni de Portmany Brecqhou Capileira Sant Llorenç des Cardassar Basilan Andratx Channel Islands Marratxí Maria de la Salut Costitx Jethou Escorca Wrexham County Borough Es Mercadal Akrotiri and Dhekelia Artà Muro, Majorca Chernivtsi Oblast Cayman Islands Sark Pistyll Sóller Biliran Bohol Vilafranca de Bonany Pollença Selva Felanitx Lloret de Vistalegre Anguilla Blaenau Gwent County Borough Es Castell Ses Salines Sant Joan Alaró Estellencs Sé Porreres Algaida Aceh Leyte Petra, Majorca Deià Herm Sencelles Papua New Guinea Ciutadella de Menorca Binissalem Fornalutx Bunyola Lloseta Santanyí Calvià Santa Eugènia West Java Province Sant Josep de sa Talaia Búger Valldemossa Llubí Grenada Zakarpattia Oblast Jamaica Isle of Man Es Migjorn Gran Anglesey Puigpunyent Sant Joan de Labritja Ariany, Majorca Inca Turks and Caicos Islands The Bahamas Pembrokeshire Sa Pobla Santa Margalida Sant Lluís Tudweiliog Lapland Mancor de la Vall Santa Maria del Camí Bridgend County Borough British Virgin Islands Banyalbufar Son Servera Capdepera
Papua New Guinea, Grenada and Jamaica have their location as around the same number of political territories or natural region of Germanys as Valldemossa
Papua New Guinea Grenada Jamaica
action approx
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type natural region of Germany
action count
action filter_multi_types
action find
entity Valldemossa
relation located on terrain feature
type political territorial entity
type natural region of Germany
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'natural region of Germany'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) ?m WHERE { VALUES ( ?a ) { ( ontology:political_territorial_entity ) ( ontology:natural_region_of_Germany ) } . ?x rdf:type ?a } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Valldemossa property:located_on_terrain_feature ?s . { { ?s rdf:type ontology:political_territorial_entity } UNION { ?s rdf:type ontology:natural_region_of_Germany } } } } . FILTER ( ?z = ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q988714
P706
Q1048835 Q553036 Q1048835
USER
And what about Lloret de Vistalegre?
(c(Q1048835),P706,c(Q1048835)|c(Q553036))
action approx
action union
action find_tuple_counts
relation P706
type Q1048835
type Q1048835
action find_tuple_counts
relation P706
type Q1048835
type Q553036
action count
action filter_multi_types
action find
entity Q988714
relation P706
type Q1048835
type Q553036
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q553036'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?n WHERE { { ?n property:P706 ?u . ?n rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } UNION { ?n property:P706 ?u . ?n rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q553036 } } GROUP BY ?n } . FILTER ( ?v = ?m ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { resource:Q988714 property:P706 ?q . { ?q rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1048835 ) ( ontology:Q553036 ) } } } } }
Lloret de Vistalegre
action approx
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type natural region of Germany
action count
action filter_multi_types
action find
entity Lloret de Vistalegre
relation located on terrain feature
type political territorial entity
type natural region of Germany
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'natural region of Germany'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?n WHERE { { ?n property:located_on_terrain_feature ?u . ?n rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } UNION { ?n property:located_on_terrain_feature ?u . ?n rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:natural_region_of_Germany } } GROUP BY ?n } . FILTER ( ?v = ?m ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { resource:Lloret_de_Vistalegre property:located_on_terrain_feature ?q . { ?q rdf:type ?h . VALUES ( ?h ) { ( ontology:political_territorial_entity ) ( ontology:natural_region_of_Germany ) } } } } }
[]
political territorial entity natural region of Germany political territorial entity
Q691 Q769 Q766
SYSTEM
Papua New Guinea, Grenada, Jamaica
Q927498 Q6661154 Q1747689 Q983465 Q943922 Q983461 Q753702 Q950889 Q385923 Q49567 Q52626 Q13353 Q6139 Q847324 Q785 Q847321 Q850989 Q983467 Q743716 Q734805 Q904566 Q555140 Q983463 Q13737 Q493017 Q42314 Q950940 Q669078 Q851224 Q898856 Q950951 Q843868 Q945653 Q37362 Q715970 Q595424 Q168856 Q5785 Q3405693 Q7198529 Q832991 Q13751 Q13752 Q975679 Q601112 Q984496 Q743741 Q988714 Q25228 Q596885 Q941533 Q783498 Q692920 Q850939 Q988702 Q2451327 Q925773 Q851011 Q1823 Q13844 Q611123 Q233337 Q202023 Q987394 Q691 Q899884 Q837121 Q950901 Q837125 Q847317 Q983633 Q491786 Q983631 Q3724 Q983635 Q652988 Q832967 Q185409 Q769 Q170213 Q766 Q9676 Q984485 Q168159 Q983625 Q983628 Q656449 Q988688 Q18221 Q778 Q213361 Q984493 Q984491 Q984499 Q3396832 Q5700 Q988696 Q943948 Q697126 Q25305 Q616408 Q610838 Q920971
(c(Q1048835),P706,c(Q1048835)|c(Q553036))
action approx
action union
action find_tuple_counts
relation P706
type Q1048835
type Q1048835
action find_tuple_counts
relation P706
type Q1048835
type Q553036
action count
action filter_multi_types
action find
entity Q988714
relation P706
type Q1048835
type Q553036
[ANSWERS]
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q553036'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?n WHERE { { ?n property:P706 ?u . ?n rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } UNION { ?n property:P706 ?u . ?n rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q553036 } } GROUP BY ?n } . FILTER ( ?v = ?m ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { resource:Q988714 property:P706 ?q . { ?q rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1048835 ) ( ontology:Q553036 ) } } } } }
Llucmajor Llanddeusant, Carmarthenshire Ancient Rome Santa Eulària des Riu Sineu Ferreries East New Britain Consell Alcúdia Manacor Formentera Montserrat Havelland Alaior Jersey Esporles Campanet Montuïri Campos Sant Antoni de Portmany Brecqhou Capileira Sant Llorenç des Cardassar Basilan Andratx Channel Islands Marratxí Maria de la Salut Costitx Jethou Escorca Wrexham County Borough Es Mercadal Akrotiri and Dhekelia Artà Muro, Majorca Chernivtsi Oblast Cayman Islands Sark Pistyll Sóller Biliran Bohol Vilafranca de Bonany Pollença Selva Felanitx Lloret de Vistalegre Anguilla Blaenau Gwent County Borough Es Castell Ses Salines Sant Joan Alaró Estellencs Sé Porreres Algaida Aceh Leyte Petra, Majorca Deià Herm Sencelles Papua New Guinea Ciutadella de Menorca Binissalem Fornalutx Bunyola Lloseta Santanyí Calvià Santa Eugènia West Java Province Sant Josep de sa Talaia Búger Valldemossa Llubí Grenada Zakarpattia Oblast Jamaica Isle of Man Es Migjorn Gran Anglesey Puigpunyent Sant Joan de Labritja Ariany, Majorca Inca Turks and Caicos Islands The Bahamas Pembrokeshire Sa Pobla Santa Margalida Sant Lluís Tudweiliog Lapland Mancor de la Vall Santa Maria del Camí Bridgend County Borough British Virgin Islands Banyalbufar Son Servera Capdepera
Papua New Guinea Grenada Jamaica
action approx
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type natural region of Germany
action count
action filter_multi_types
action find
entity Lloret de Vistalegre
relation located on terrain feature
type political territorial entity
type natural region of Germany
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'natural region of Germany'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) ?n WHERE { { ?n property:located_on_terrain_feature ?u . ?n rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } UNION { ?n property:located_on_terrain_feature ?u . ?n rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:natural_region_of_Germany } } GROUP BY ?n } . FILTER ( ?v = ?m ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { resource:Lloret_de_Vistalegre property:located_on_terrain_feature ?q . { ?q rdf:type ?h . VALUES ( ?h ) { ( ontology:political_territorial_entity ) ( ontology:natural_region_of_Germany ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q800
P530
Q1048835 Q15617994
USER
Which administrative territories have diplomatic associations with lesser number of political territories than Costa Rica ?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q800
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?i ) WHERE { ?n property:P530 ?l . ?n rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { resource:Q800 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . FILTER ( ?i < ?h ) }
Costa Rica
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Costa Rica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?i ) WHERE { ?n property:diplomatic_relation ?l . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { resource:Costa_Rica property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . FILTER ( ?i < ?h ) }
[]
political territorial entity designation for an administrative territorial entity
Q32 Q1011 Q805
SYSTEM
Luxembourg, Cape Verde, Yemen
Q702 Q805 Q262 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q792 Q790 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q236 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q800
relation P530
type Q1048835
[ANSWERS] have diplomatic associations with lesser number of political territories than Costa Rica
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?i ) WHERE { ?n property:P530 ?l . ?n rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { resource:Q800 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . FILTER ( ?i < ?h ) }
Federated States of Micronesia Yemen Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad El Salvador Haiti South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Montenegro Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Oman Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Luxembourg, Cape Verde and Yemen have diplomatic associations with lesser number of political territories than Costa Rica
Luxembourg Cape Verde Yemen
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Costa Rica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?i ) WHERE { ?n property:diplomatic_relation ?l . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { resource:Costa_Rica property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . FILTER ( ?i < ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1049
P530
Q1048835 Q15617994
USER
And also tell me about Sudan?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1049
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?h ) WHERE { ?m property:P530 ?s . ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j rdf:type ontology:Q15617994 . resource:Q1049 property:P530 ?j } } . FILTER ( ?h < ?e ) }
Sudan
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Sudan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?h ) WHERE { ?m property:diplomatic_relation ?s . ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Sudan property:diplomatic_relation ?j } } . FILTER ( ?h < ?e ) }
[]
political territorial entity designation for an administrative territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q399 Q398 Q790 Q236 Q842 Q858
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1049
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?h ) WHERE { ?m property:P530 ?s . ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j rdf:type ontology:Q15617994 . resource:Q1049 property:P530 ?j } } . FILTER ( ?h < ?e ) }
Yemen Armenia Bahrain Haiti Montenegro Oman Syria
Yemen Syria Oman
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Sudan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?h ) WHERE { ?m property:diplomatic_relation ?s . ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Sudan property:diplomatic_relation ?j } } . FILTER ( ?h < ?e ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q13589 Q10544
P47
Q1048835
USER
Which political territories share border with Munich (district) or Ullastret ?
OR((c(Q1048835),P47,Q10544), (c(Q1048835),P47,Q13589))
action filter_type
action union
action find_reverse
entity Q10544
relation P47
action find_reverse
entity Q13589
relation P47
type Q1048835
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q10544'], [{'concept': 'Q1048835'}, 'P47', 'Q13589']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1048835 . { { ?q property:P47 resource:Q10544 } UNION { ?q property:P47 resource:Q13589 } } }
Ullastret Munich (district)
action filter_type
action union
action find_reverse
entity Munich (district)
relation shares border with
action find_reverse
entity Ullastret
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Munich (district)'], [{'concept': 'political territorial entity'}, 'shares border with', 'Ullastret']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:political_territorial_entity . { { ?q property:shares_border_with resource:Munich_(district) } UNION { ?q property:shares_border_with resource:Ullastret } } }
[]
political territorial entity
Q13492 Q13460 Q13468 Q10539 Q13570 Q10526 Q10523 Q10502 Q10500 Q13516
SYSTEM
Some of them are Palau-sator, La Bisbal d'Empordà, Corçà, Erding, Serra de Daró, Rosenheim, Miesbach, Fürstenfeldbruck, Dachau, Parlavà
Q10497 Q10541 Q10522 Q10500 Q10502 Q10504 Q13570 Q10523 Q13475 Q13476 Q13460 Q10539 Q10526 Q13468 Q13492 Q13516
OR((c(Q1048835),P47,Q10544), (c(Q1048835),P47,Q13589))
action filter_type
action union
action find_reverse
entity Q10544
relation P47
action find_reverse
entity Q13589
relation P47
type Q1048835
[ANSWERS] share border with Munich (district) or Ullastret
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q10544'], [{'concept': 'Q1048835'}, 'P47', 'Q13589']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1048835 . { { ?q property:P47 resource:Q10544 } UNION { ?q property:P47 resource:Q13589 } } }
Freising Ebersberg Bad Tölz-Wolfratshausen Dachau Fürstenfeldbruck Starnberg Serra de Daró Miesbach Forallac Fontanilles La Bisbal d'Empordà Erding Rosenheim Corçà Palau-sator Parlavà
Palau-sator, La Bisbal d'Empordà, Corçà, Erding, Serra de Daró, Rosenheim, Miesbach, Fürstenfeldbruck, Dachau and Parlavà share border with Munich (district) or Ullastret
Palau-sator La Bisbal d'Empordà Corçà Erding Serra de Daró Rosenheim Miesbach Fürstenfeldbruck Dachau Parlavà
action filter_type
action union
action find_reverse
entity Munich (district)
relation shares border with
action find_reverse
entity Ullastret
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Munich (district)'], [{'concept': 'political territorial entity'}, 'shares border with', 'Ullastret']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:political_territorial_entity . { { ?q property:shares_border_with resource:Munich_(district) } UNION { ?q property:shares_border_with resource:Ullastret } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q928 Q13589
P47 P17
Q1048835
USER
Which political territories have an adjacent border with Ullastret or are present in Philippines ?
OR((c(Q1048835),P47,Q13589), (c(Q1048835),P17,Q928))
action filter_type
action union
action find_reverse
entity Q13589
relation P47
action find_reverse
entity Q928
relation P17
type Q1048835
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q13589'], [{'concept': 'Q1048835'}, 'P17', 'Q928']]}
SELECT DISTINCT ?i WHERE { { { ?i property:P47 resource:Q13589 } UNION { ?i property:P17 resource:Q928 } } . ?i rdf:type ontology:Q1048835 }
Philippines Ullastret
action filter_type
action union
action find_reverse
entity Ullastret
relation shares border with
action find_reverse
entity Philippines
relation country
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Ullastret'], [{'concept': 'political territorial entity'}, 'country', 'Philippines']]}
SELECT DISTINCT ?i WHERE { { { ?i property:shares_border_with resource:Ullastret } UNION { ?i property:country resource:Philippines } } . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q26882023 Q26792860 Q7684726 Q7906995 Q7132058 Q7414325 Q5048790 Q13728 Q26883984 Q26794358
SYSTEM
Some of them are Cogon Pardo, Central, Tapon, VII-B, Pao, Manaoag, Pangasinan, San Isidro, Casile, Apayao, Punta Princesa, Lorega (Lorega San Miguel)
Q27038826 Q251207 Q27038821 Q7414428 Q26722355 Q26722357 Q26790214 Q13881 Q13882 Q13885 Q13884 Q13887 Q13889 Q251199 Q13728 Q7413901 Q26772609 Q7080277 Q13721 Q13723 Q13726 Q7930933 Q7227812 Q7206214 Q26791243 Q7206216 Q7885304 Q7206210 Q26791247 Q7206212 Q16879834 Q15206815 Q6792462 Q7199122 Q26883699 Q15729055 Q7415069 Q6410356 Q15206811 Q7451347 Q6741251 Q4975124 Q16875628 Q7124124 Q26794274 Q17088893 Q26794271 Q16900799 Q4997923 Q17083653 Q7906961 Q26788715 Q7523674 Q5252972 Q5015225 Q26821205 Q5015388 Q26789245 Q26883888 Q5048060 Q4873888 Q13476 Q5048064 Q5024915 Q26883993 Q26839023 Q6750571 Q6005613 Q4857242 Q13900 Q251253 Q7415260 Q7918697 Q26821335 Q17134341 Q26884105 Q17078091 Q5400596 Q16252794 Q17059168 Q6747791 Q4941843 Q26821298 Q26722361 Q16256601 Q13516 Q7142288 Q4753476 Q26818011 Q16968823 Q6472743 Q3473116 Q26884079 Q26884074 Q38835 Q26771352 Q16851746 Q6674975 Q251244 Q26770865 Q26803753 Q4985408 Q13769 Q13727 Q13763 Q7206215 Q26790436 Q4858374 Q4985490 Q4792036 Q5515387 Q7228491 Q7673498 Q26722329 Q26804579 Q7335345 Q26791580 Q13750 Q4907000 Q7006211 Q7419971 Q7196382 Q26883254 Q5939706 Q7413810 Q16259373 Q6729545 Q15215342 Q26791738 Q5518554 Q6373610 Q7850905 Q5616614 Q26772556 Q5197069 Q26840407 Q17077723 Q7414323 Q18352333 Q13786 Q13785 Q7415340 Q13869 Q13868 Q13867 Q13866 Q7414689 Q13864 Q13863 Q13862 Q13861 Q13860 Q17087490 Q5211746 Q5024911 Q26794264 Q26792869 Q5644179 Q26792860 Q13568300 Q7808513 Q16948770 Q4902397 Q6746839 Q16253568 Q26884098 Q5243060 Q7680997 Q5565889 Q12741 Q2246048 Q5437840 Q5437841 Q26763596 Q26722348 Q7083569 Q251235 Q5617844 Q5158354 Q26722340 Q13737 Q6547828 Q16250729 Q26805182 Q13730 Q7413556 Q4855235 Q13865 Q16885743 Q7930512 Q26791555 Q15196436 Q7137012 Q7414317 Q16894478 Q26791399 Q7260616 Q13454609 Q13789 Q17081330 Q26736176 Q17075941 Q18350152 Q26788637 Q7206558 Q3551500 Q26772457 Q7414484 Q5020182 Q7414894 Q6503551 Q26771138 Q17087638 Q13829 Q7630505 Q26792671 Q7413900 Q7260501 Q7260500 Q6772385 Q26785978 Q5207378 Q7675135 Q17087595 Q26791602 Q7135479 Q13460 Q7403318 Q26883984 Q26883987 Q7906996 Q7906995 Q7906994 Q5032508 Q7595670 Q13857 Q7807986 Q17128297 Q6887381 Q26821328 Q26884117 Q7131203 Q7415107 Q5023041 Q13813 Q7684726 Q7130474 Q7801330 Q3791229 Q26792855 Q5437809 Q4839895 Q17073535 Q7041692 Q5015604 Q26772619 Q17083638 Q16837938 Q26821178 Q13778 Q7563751 Q5002737 Q13772 Q15195861 Q7684100 Q13475 Q4858365 Q4858364 Q18351169 Q4858360 Q17059680 Q4941222 Q26771461 Q4866174 Q4866172 Q26789604 Q26837556 Q4881694 Q26794384 Q13448615 Q2567758 Q7292717 Q7262180 Q16919440 Q18357018 Q7682512 Q6764407 Q15095071 Q26790550 Q26794457 Q7179691 Q15242574 Q4830864 Q26790855 Q26883126 Q26882412 Q26772351 Q6704971 Q26791721 Q15228491 Q15228490 Q26883281 Q7131658 Q7850910 Q15228282 Q7206209 Q4853987 Q6503565 Q17087563 Q26791726 Q17087430 Q16256090 Q13791 Q13792 Q13812 Q5210202 Q13810 Q26884010 Q26821228 Q16253286 Q6681924 Q17077918 Q26763510 Q7419881 Q251617 Q17083859 Q17027029 Q6154118 Q5043737 Q7122055 Q7132058 Q7415094 Q17059316 Q20658357 Q26787936 Q26787837 Q5428133 Q26884089 Q1548354 Q26882023 Q7057697 Q26763601 Q6850435 Q7525554 Q7413491 Q27038794 Q26790096 Q5124160 Q3656379 Q5589527 Q4971739 Q7417761 Q251227 Q15265299 Q13570 Q6721589 Q13740 Q13744 Q6375183 Q6013514 Q17086646 Q13871 Q26882110 Q26791545 Q7130989 Q7414717 Q7414716 Q26791262 Q26817972 Q7415356 Q7521776 Q26787741 Q1192700 Q1126752 Q26771262 Q7683128 Q13448485 Q18387606 Q26794358 Q16889991 Q13879 Q5289495 Q7126745 Q4841388 Q6729316 Q7851608 Q24347675 Q26883879 Q26821340 Q2278939 Q4842171 Q4842172 Q4842074 Q27805705 Q7808239 Q6750590 Q13492 Q26772535 Q5025021 Q26793930 Q26793933 Q26793937 Q7420465 Q12971186 Q13845 Q13844 Q13847 Q13846 Q13841 Q13840 Q13843 Q6550217 Q16902320 Q4944119 Q26883703 Q26818015 Q7853049 Q16256141 Q7675283 Q26840255 Q6745462 Q4913839 Q26763524 Q5005706 Q4673688 Q26821264 Q7259562 Q17072262 Q7413504 Q6785975 Q26794815 Q26772669 Q6472726 Q7228537 Q26882015 Q4858359 Q13448620 Q18698427 Q4996406 Q27038835 Q251218 Q13892 Q13893 Q13891 Q18379779 Q13895 Q6982550 Q13899 Q15245384 Q5024112 Q13902 Q13714 Q13711 Q6118145 Q26791530 Q26722333 Q26722330 Q26722337 Q26722335 Q26722334 Q26791716 Q7415090 Q26839043 Q4942788 Q7414325 Q17149831 Q26794365 Q3322211 Q26794368 Q13809 Q7675347 Q7419265 Q26794534 Q13739 Q251261 Q6466814 Q6418849 Q13807 Q13806 Q5275239 Q18356359 Q26839033 Q7406294 Q6958739 Q16255476 Q5048790 Q5048791 Q5032522 Q7415252 Q4943329 Q5467263 Q18351821 Q26821281 Q13767 Q26818002 Q4779926 Q7926513 Q26883286 Q7225884 Q5017377 Q26884003 Q5060477 Q26722360 Q26763388 Q26722363 Q26722368 Q6674900 Q13751 Q5520420 Q13753 Q13752 Q13755 Q13759 Q6728869 Q15274816 Q26882288 Q26772658 Q13568074 Q5313614 Q6669136 Q26789404 Q7808848 Q7808849 Q7262284 Q26791590 Q26804566 Q7636841 Q4708210 Q18378616 Q7851610 Q7851619 Q4518656 Q7415226 Q15195859 Q4987190 Q4842066 Q4849436 Q16256022 Q7403624 Q13448588 Q17078522 Q26772540 Q26793923 Q26793920 Q26772426 Q7684414 Q13870 Q17088368 Q13872 Q13873 Q13874 Q13875 Q13876 Q13877 Q26786528 Q18359182 Q27038295 Q5221557 Q4856826 Q26884124 Q5061130 Q5141276 Q26883895 Q26789319 Q16893935 Q26840243 Q13794 Q6298722 Q7259557 Q4942643 Q17083541 Q18354279 Q1026024 Q13468 Q15241721 Q4918177 Q17090175 Q4906774 Q5760712 Q4849806 Q4849807 Q13827 Q5226803 Q13826 Q7272069 Q6967765 Q13825 Q5033494 Q4889572 Q5018637 Q4982103 Q7413586 Q4865837 Q26884132
OR((c(Q1048835),P47,Q13589), (c(Q1048835),P17,Q928))
action filter_type
action union
action find_reverse
entity Q13589
relation P47
action find_reverse
entity Q928
relation P17
type Q1048835
[ANSWERS] have an adjacent border with Ullastret or are present in Philippines
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q13589'], [{'concept': 'Q1048835'}, 'P17', 'Q928']]}
SELECT DISTINCT ?i WHERE { { { ?i property:P47 resource:Q13589 } UNION { ?i property:P17 resource:Q928 } } . ?i rdf:type ontology:Q1048835 }
Calma Guyong Cagwang San Jose Lotloton Manan‑ao Ibo Sorsogon South Cotabato Sultan Kudarat Southern Leyte Sulu Surigao del Norte Barangay Santa Clara, Santa Maria Apayao San Francisco Budla‑an Oguisan Agusan del Sur Aklan Albay Villarica, Midsayap, Cotabato Pongon Poblacion II Marigondon Poblacion III Union Poblacion, Kalibo Pajac Poblacion Minda, Samar Calanggaman Maulong, Catbalogan Pittland Pahina San Nicolas Coronon, Davao del Sur San Pascual Kinakin, Banaue, Ifugao Calampong, Samar Sentinela Malanday Brookspoint, Baguio San Juan, Surigao Pag-asa Lahug Sta. Clara, Santo Tomas, Batangas Kasambagan Dulong-Bayan Buntay, Dagami, Leyte Palo Alto, Calamba VI-D Calawisan Singkamas Del Remedio Cabancalan Santa Cruz Cabilang Baybay, Carmona, Cavite Canjulao Pasil Casate Bay-ang Fontanilles Casay, Anini-y, Antique Camambugan San Nicolas Central Basak Pardo Manlayo, Guinayangan, Quezon Imnajbu Bantog, Anao, Tarlac Zamboanga del Sur Bagbaguin, Santa Maria San Roque West, Agoo, La Union Veinte Reales Tinago Tulo Tabunan Mantalongon, Cebu Estancia, Kalibo Bagolatao, Camarines Sur Burol, Dasmariñas Mandaloque, Dingras, Ilocos Norte Bongbong Taptap Parian DPS Compound Parlavà Pasonanca, Zamboanga City Andagao San Antonio Mabilao Laguilayan, Isulan Sapangbato, Angeles Suba (Suba San Nicolas) Sinsin Bagatayam Pooc Caparangasan Look 1st Pulong Buhangin, Santa Maria Maricaban Pari‑an Buena Suerte, El Nido, Palawan Camiguin Antique Camarines Norte Poblacion I Looc Barangka Buenavista Arkong Bato Gabi Pooc, Talisay, Cebu Tabon Island Balolong Pit‑os Rio Tuba, Bataraza, Palawan Sabang Benguet Bignay New Buswang, Kalibo Santa Veronica Pinocawan, Javier, Leyte Kinasang‑an Pardo Humayhumay San Esteban, Nabua, Camarines Sur Naliwatan, Leyte Mag-abo, Amlan Dumara, Zamboanga del Sur Tungasan Galicia Karuhatan Tubog Guintabo-an Binaliw Cuya Buot-Taup Pardo Maglahus, Davao Oriental San Isidro Manlot Cebu Cavite San Teodoro, Bunawan, Agusan del Sur Palawan Oriental Mindoro Occidental Mindoro Nueva Vizcaya San Lorenzo Northern Samar Negros Oriental Negros Occidental Mountain Province Misamis Oriental San Fernando, Santo Tomas, Batangas Dalupaon, Pasacao, Camarines Sur Camali-an Kamagayan Cogon Ramos Hambabauran Central Irisan Tintinan Fatima Biabas Manalipa Island Batino, Calamba Sudlon II Dayangdang, Naga City Tambacan, Iligan Giwan, Surigao del Norte Ilocos Sur Pugalo, Alcoy Fatima III, San Jose del Monte Fatima II, San Jose del Monte Kinatarkan Lomangcapan Old Buswang, Kalibo Mag-asawang Sapa, Santa Maria Gulod Concepcion Libo Basilan Lilingayon Aliguay Pulangbato Aurora San Crispin Bangkulasi Nueva Ecija San Antonio, Batangas Villa Teresita Pusok Bancal, Cavite Pariancillo Villa San Isidro Mahayag, Bohol Pangan‑an Punturin Santa Isabel Compostela Valley Nalook Abijilan Libertad, Romblon Loguingot Buaya Poctol Maitim 2nd East Apas San Jose Sico California San Mateo Lawaan II Okoy San Miguel, Tarlac La Union Suarez, Iligan Capitol Site San Francisco Punta, Calamba Punta, Looc, Romblon Maroroy Agus Daanghari Tagalag San Luis, Santo Tomas, Batangas, Santa Rosa Parang, Jose Panganiban, Camarines Norte La Bisbal d'Empordà Sala Punta Princesa Quiot Pardo VII-D VII-B VII-C Canlambong Sta. Cruz, Jose Panganiban, Camarines Norte Misamis Occidental Tinajeros Turbina Mobo, Kalibo Tejero (Villa Gonzalo) Tagbao Panitian, Quezon, Palawan San Pedro Cutud Calmay, Laoac, Pangasinan Ilocos Norte Tapon Pandan Tigayon, Kalibo Lantic, Carmona Carreta Fatima Baclaran Ilog, Quezon Niugan Cabiton-an, Daram, Samar Busay Paliparan, Dasmariñas Barangay O'Donnell San Roque Catanduanes Sorsogon, Malabuyoc, Cebu Butong Capiz Bachaw Sur, Kalibo Tanza Forallac Barangay Talon-Talon Barangay San Benito, Dagami Alibhon Barangay Cabatuan, Palapag, Northern Samar Salawag, Dasmariñas Bonawon, Siaton, Negros Oriental Talisay Basak, Bais, Negros Oriental Basak Cawhagan Babag Bel-Air Village Mabini Tangos North Kay-Anlog Rangeban, Midsayap, Cotabato Barangay Putat Napti Bayas Island Tandubato Marinig Davao Province Mactan Mabolo Peñafrancia, Naga, Camarines Sur Lo-oc, Cebu Alabang Maribago Kalunasan Inayawan Adlaon Lurogan Talima Imelda Imelda, Biliran Labangon Pantao Tuboran Ilihan Poblacion, Kadingilan, Bukidnon Banay-Banay Lawang Bato San Joaquin, Santo Tomas, Batangas, Tingo San Agustin, Santo Tomas, Batangas Calansayan Cotabato Davao del Norte Ifugao Dalandanan Guimaras Sawang Calero Sirao Barandal, Calamba Los Angeles Makiling, Calamba Hagdan Santa Rosa Del Sur, Pasacao, Camarines Sur Mabuhay, Carmona Panducot, Bulacan Bual Norte, Cotabato Jangtud, Palapag Northern Samar Carmona Pachoca, Calapan Pao, Manaoag, Pangasinan San Pedro Langkaan, Dasmariñas Padre Sergio Eamiguel Basak Baring Fabrica Sudlon I Moro Province Cogon Pardo Northbay Boulevard, North Langub Milagrosa, Carmona, Cavite Sipac Almacen San Buenaventura Basiao Gun‑ob Ciudad Real Davao Occidental Governor Boyles Briz District Sanga-Sanga Catmon Pangdan Serra de Daró Mabilo, Kalibo Batanes Batangas Katarungan Inampulugan Real, Calamba Pangasinan Duljo Punta Engaño Pangpang San Lucas 2 San Lucas 1 Pajo Sambag I San Vicente Sinandigan Bankal Balangkas Shariff Kabunsuan Poblacion Tangos Isla Taguiporo Lorega (Lorega San Miguel) Santa Cruz, Camarines Sur Siquijor Dolores Palasan Bagacay, Hinabangan, Samar Maestrang Kikay, Talavera, Nueva Ecija Tugatog Poblacion, Muntinlupa Pardo Zapatera Banilad Bagumbayan South Bagumbayan North Bagontaas Liciada Tinigao, Kalibo Manlilisid, Javier, Leyte Palau-sator Bacayan Cambaro, Mandaue Guba Hippodromo Kalubihan Santo Angel Solo Maguindanao Leyte Masbate Marinduque Lanao del Norte Laguna Lanao del Sur Linabuan Norte, Kalibo Union, Surigao del Norte Booy Pamutan San Jose Tungkong Mangga Calubcub Tagkip, Dagami, Leyte Bulacao Mamatid Binahian, Sipocot, Camarines Sur Hilantagaan Matabungkay Achila T. Padilla Pulong Balibaguhan, Mabini, Batangas Halang, Calamba San Carlos Matagbak, Alfonso, Cavite Pahina Central Camputhaw Lagtang, Talisay, Cebu Pook, Kalibo Calamba Barangay Barra Tangos South Bantulán Bulilis Cambuyo Lalakhan Tarlac Tawi-Tawi Surigao del Sur Calaocan Zambales Navotas East Zamboanga del Norte Mansasa, Tagbilaran Calumpang Zamboanga Sibugay Agusan del Norte Abra Jaclupan, Talisay, Cebu Poblacion Bitaug Bino‑ongan Cangmangki Camogao Bolot Subabasbas San Pedro, Bagabag, Nueva Vizcaya Bonbon Bood San Isidro Tobog Lusaran Bilogo Luz Eastern Samar Taguilon, Dapitan Santa Catalina Malubog Bataan Caypombo, Santa Maria Labayug, Sison, Pangasinan Kiwanan, Midsayap, Cotabato Dinagat Islands Davao Oriental Diezmo Manipulon Basak San Nicolas Salunayan, Midsayap, Cotabato Nagbobtac, Palapag, Northern Samar Briones, Kalibo Casile Casili, Gubat, Sorsogon Canlubang San Roque Bool Forbes Park Malangabang Talamban Camarines Sur Sambag II Apitong Victoria, Roxas, Oriental Mindoro Mambaling Polo Cagting Sapangdaku Central Bulanan, Midsayap, Cotabato Olave Balidbid Poblacion Tulapos Looc, Mandaue Biliran Gamut, Tago, Surigao del Sur Bukidnon Bohol Bulacan Cagayan Maduya, Carmona, Cavite San Isidro Guadalupe Cambinocot Mount Nebo Dumalo-ong, Gandara, Samar Lomangog Caw‑oy Tipolo, Mandaue, Cebu Tipolo Putik, Zamboanga City San Vicente Paril Suluan Island Alang-alang, Mandaue City Binuluangan Tugaya Tugbong Wawa, Pilar San Rafael Village Bachaw Norte, Kalibo Bulacnin Bagong Bayan Bakilid Caano Salangbato, Famy, Laguna Navotas West Mayapa, Calamba Banilad Ermita Day‑as Agsungot Tapal Pampanga Sirang Lupa, Calamba Quezon Quirino Rizal Romblon Samar Sarangani Babag Botlog Island Antipolo Dapa township, Surigao del Norte Banlic Tisa Central Glad, Midsayap, Cotabato Cogon Pung‑ol-Sibugay Caubian Lamao, Zamboanga del Norte Buhisan Davao del Sur Juagdan Pulo Bonuan Gueset, Dagupan Paciano Rizal, Calamba San Antonio, San Pedro, Laguna Lamao, Limay Corçà Larrazabal, Biliran Bisig Tamak, Batangas Bigaa Hilabago, Dagami, Leyte Balagasan Balagatasa Kalinga Dasmariñas Village Isabela Quinaoayanan Bani, Pangasinan Nasugban, Santa Barbara, Iloilo Iloilo Cansolabao, Hinabangan, Samar Benliw Calayo Bual, Midsayap, Cotabato San Diego Barucboc, Quezon, Isabela To‑ong Pardo
Cogon Pardo, Central, Tapon, VII-B, Pao, Manaoag, Pangasinan, San Isidro, Casile, Apayao, Punta Princesa and Lorega (Lorega San Miguel) have an adjacent border with Ullastret or are present in Philippines
Cogon Pardo Central Tapon VII-B Pao, Manaoag, Pangasinan San Isidro Casile Apayao Punta Princesa Lorega (Lorega San Miguel)
action filter_type
action union
action find_reverse
entity Ullastret
relation shares border with
action find_reverse
entity Philippines
relation country
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Ullastret'], [{'concept': 'political territorial entity'}, 'country', 'Philippines']]}
SELECT DISTINCT ?i WHERE { { { ?i property:shares_border_with resource:Ullastret } UNION { ?i property:country resource:Philippines } } . ?i rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1382246 Q13728
P47
Q1048835
USER
Which political territories do Apayao or Elburgo/Burgelu share a border with ?
OR((c(Q1048835),P47,Q13728), (c(Q1048835),P47,Q1382246))
action filter_type
action union
action find_reverse
entity Q13728
relation P47
action find_reverse
entity Q1382246
relation P47
type Q1048835
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q13728'], [{'concept': 'Q1048835'}, 'P47', 'Q1382246']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . { VALUES ( ?b ) { ( resource:Q1382246 ) ( resource:Q13728 ) } . ?x property:P47 ?b } }
Elburgo/Burgelu Apayao
action filter_type
action union
action find_reverse
entity Apayao
relation shares border with
action find_reverse
entity Elburgo/Burgelu
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Apayao'], [{'concept': 'political territorial entity'}, 'shares border with', 'Elburgo/Burgelu']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . { VALUES ( ?b ) { ( resource:Elburgo/Burgelu ) ( resource:Apayao ) } . ?x property:shares_border_with ?b } }
[]
political territorial entity
Q1330796 Q961216 Q1443812 Q13813 Q1368822 Q1368923
SYSTEM
Alegría-Dulantzi, Barrundia, Iruraiz-Gauna, Ilocos Norte, Bernedo, Arrazua-Ubarrundia
Q1330796 Q961216 Q1443812 Q13813 Q1368822 Q1368923
OR((c(Q1048835),P47,Q13728), (c(Q1048835),P47,Q1382246))
action filter_type
action union
action find_reverse
entity Q13728
relation P47
action find_reverse
entity Q1382246
relation P47
type Q1048835
Apayao or Elburgo / Burgelu share a border with the [ANSWERS]
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q13728'], [{'concept': 'Q1048835'}, 'P47', 'Q1382246']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . { VALUES ( ?b ) { ( resource:Q1382246 ) ( resource:Q13728 ) } . ?x property:P47 ?b } }
Alegría-Dulantzi Barrundia Iruraiz-Gauna Ilocos Norte Bernedo Arrazua-Ubarrundia
Apayao or Elburgo / Burgelu share a border with the Alegría-Dulantzi, Barrundia, Iruraiz-Gauna, Ilocos Norte, Bernedo and Arrazua-Ubarrundia
Alegría-Dulantzi Barrundia Iruraiz-Gauna Ilocos Norte Bernedo Arrazua-Ubarrundia
action filter_type
action union
action find_reverse
entity Apayao
relation shares border with
action find_reverse
entity Elburgo/Burgelu
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Apayao'], [{'concept': 'political territorial entity'}, 'shares border with', 'Elburgo/Burgelu']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . { VALUES ( ?b ) { ( resource:Elburgo/Burgelu ) ( resource:Apayao ) } . ?x property:shares_border_with ?b } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q983467
P706
Q56061 Q1048835 Q1048835
USER
Which political territories are located in greater number of administrative territories and political territories than Montuïri ?
(c(Q1048835),P706,c(Q56061)|c(Q1048835))
action greater
action union
action find_tuple_counts
relation P706
type Q1048835
type Q56061
action find_tuple_counts
relation P706
type Q1048835
type Q1048835
action count
action filter_multi_types
action find
entity Q983467
relation P706
type Q56061
type Q1048835
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q56061'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?n ) WHERE { { ?e property:P706 ?m . ?m rdf:type ontology:Q56061 . ?e rdf:type ontology:Q1048835 } UNION { ?e property:P706 ?m . ?e rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q1048835 } } GROUP BY ?e } . FILTER ( ?n > ?s ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { resource:Q983467 property:P706 ?a . { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1048835 ) ( ontology:Q56061 ) } } } } }
Montuïri
action greater
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type administrative territorial entity
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Montuïri
relation located on terrain feature
type administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?n ) WHERE { { ?e property:located_on_terrain_feature ?m . ?m rdf:type ontology:administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } UNION { ?e property:located_on_terrain_feature ?m . ?e rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:political_territorial_entity } } GROUP BY ?e } . FILTER ( ?n > ?s ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { resource:Montuïri property:located_on_terrain_feature ?a . { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:political_territorial_entity ) ( ontology:administrative_territorial_entity ) } } } } }
[]
administrative territorial entity political territorial entity political territorial entity
Q1747689 Q9337
SYSTEM
Ancient Rome, Flemish Region
Q1747689 Q9337
(c(Q1048835),P706,c(Q56061)|c(Q1048835))
action greater
action union
action find_tuple_counts
relation P706
type Q1048835
type Q56061
action find_tuple_counts
relation P706
type Q1048835
type Q1048835
action count
action filter_multi_types
action find
entity Q983467
relation P706
type Q56061
type Q1048835
[ANSWERS] are located in greater number of administrative territories and political territories than Montuïri
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q56061'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?n ) WHERE { { ?e property:P706 ?m . ?m rdf:type ontology:Q56061 . ?e rdf:type ontology:Q1048835 } UNION { ?e property:P706 ?m . ?e rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q1048835 } } GROUP BY ?e } . FILTER ( ?n > ?s ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { resource:Q983467 property:P706 ?a . { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1048835 ) ( ontology:Q56061 ) } } } } }
Ancient Rome Flemish Region
Ancient Rome and Flemish Region are located in greater number of administrative territories and political territories than Montuïri
Ancient Rome Flemish Region
action greater
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type administrative territorial entity
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Montuïri
relation located on terrain feature
type administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?n ) WHERE { { ?e property:located_on_terrain_feature ?m . ?m rdf:type ontology:administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } UNION { ?e property:located_on_terrain_feature ?m . ?e rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:political_territorial_entity } } GROUP BY ?e } . FILTER ( ?n > ?s ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { resource:Montuïri property:located_on_terrain_feature ?a . { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:political_territorial_entity ) ( ontology:administrative_territorial_entity ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q850939
P706
Q56061 Q1048835 Q1048835
USER
And how about Alaró?
(c(Q1048835),P706,c(Q56061)|c(Q1048835))
action greater
action union
action find_tuple_counts
relation P706
type Q1048835
type Q56061
action find_tuple_counts
relation P706
type Q1048835
type Q1048835
action count
action filter_multi_types
action find
entity Q850939
relation P706
type Q56061
type Q1048835
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q56061'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) ?w WHERE { { ?w property:P706 ?q . ?q rdf:type ontology:Q56061 . ?w rdf:type ontology:Q1048835 } UNION { ?w property:P706 ?q . ?w rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } } GROUP BY ?w } . FILTER ( ?p > ?o ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:Q850939 property:P706 ?c . { { ?c rdf:type ontology:Q56061 } UNION { ?c rdf:type ontology:Q1048835 } } } } }
Alaró
action greater
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type administrative territorial entity
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Alaró
relation located on terrain feature
type administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) ?w WHERE { { ?w property:located_on_terrain_feature ?q . ?q rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } UNION { ?w property:located_on_terrain_feature ?q . ?w rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } } GROUP BY ?w } . FILTER ( ?p > ?o ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:Alaró property:located_on_terrain_feature ?c . { { ?c rdf:type ontology:administrative_territorial_entity } UNION { ?c rdf:type ontology:political_territorial_entity } } } } }
[]
administrative territorial entity political territorial entity political territorial entity
Q1747689 Q9337
SYSTEM
Ancient Rome, Flemish Region
Q1747689 Q9337
(c(Q1048835),P706,c(Q56061)|c(Q1048835))
action greater
action union
action find_tuple_counts
relation P706
type Q1048835
type Q56061
action find_tuple_counts
relation P706
type Q1048835
type Q1048835
action count
action filter_multi_types
action find
entity Q850939
relation P706
type Q56061
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q56061'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) ?w WHERE { { ?w property:P706 ?q . ?q rdf:type ontology:Q56061 . ?w rdf:type ontology:Q1048835 } UNION { ?w property:P706 ?q . ?w rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } } GROUP BY ?w } . FILTER ( ?p > ?o ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:Q850939 property:P706 ?c . { { ?c rdf:type ontology:Q56061 } UNION { ?c rdf:type ontology:Q1048835 } } } } }
Ancient Rome Flemish Region
Ancient Rome Flemish Region
action greater
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type administrative territorial entity
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type political territorial entity
action count
action filter_multi_types
action find
entity Alaró
relation located on terrain feature
type administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) ?w WHERE { { ?w property:located_on_terrain_feature ?q . ?q rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } UNION { ?w property:located_on_terrain_feature ?q . ?w rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } } GROUP BY ?w } . FILTER ( ?p > ?o ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:Alaró property:located_on_terrain_feature ?c . { { ?c rdf:type ontology:administrative_territorial_entity } UNION { ?c rdf:type ontology:political_territorial_entity } } } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q9337
P127
Q62447
USER
Which aerodromes are owned by that political territory ?
(c(Q62447),P127,Q9337)
action filter_type
action find_reverse
entity Q9337
relation P127
type Q62447
[{'concept': 'Q62447'}, 'P127', 'Q9337']
SELECT DISTINCT ?y WHERE { ?y property:P127 resource:Q9337 . ?y rdf:type ontology:Q62447 }
Flemish Region
action filter_type
action find_reverse
entity Flemish Region
relation owned by
type aerodrome
[{'concept': 'aerodrome'}, 'owned by', 'Flemish Region']
SELECT DISTINCT ?y WHERE { ?y property:owned_by resource:Flemish_Region . ?y rdf:type ontology:aerodrome }
[]
aerodrome
Clarification for simple ques.
Q9337
SYSTEM
Did you mean Flemish Region ?
Q1747689 Q9337
(c(Q62447),P127,Q1747689) (c(Q62447),P127,Q9337)
[ANSWER]
[{'concept': 'Q62447'}, 'P127', 'Q1747689'] [{'concept': 'Q62447'}, 'P127', 'Q9337']
SELECT DISTINCT ?y WHERE { ?y property:P127 resource:Q9337 . ?y rdf:type ontology:Q62447 }
Ancient Rome Flemish Region
Did you mean Flemish Region ?
Flemish Region
[{'concept': 'aerodrome'}, 'owned by', 'Ancient Rome'] [{'concept': 'aerodrome'}, 'owned by', 'Flemish Region']
SELECT DISTINCT ?y WHERE { ?y property:owned_by resource:Flemish_Region . ?y rdf:type ontology:aerodrome }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q62447),P127,Q9337)
[{'concept': 'Q62447'}, 'P127', 'Q9337']
[{'concept': 'aerodrome'}, 'owned by', 'Flemish Region']
[]
Q1432260 Q2536144
SYSTEM
Ostend-Bruges International Airport, Kortrijk-Wevelgem International Airport
Q1432260 Q2536144
(c(Q62447),P127,Q9337)
action filter_type
action find_reverse
entity Q9337
relation P127
type Q62447
[ANSWERS] are owned by that political territory
[{'concept': 'Q62447'}, 'P127', 'Q9337']
SELECT DISTINCT ?y WHERE { ?y property:P127 resource:Q9337 . ?y rdf:type ontology:Q62447 }
Ostend-Bruges International Airport Kortrijk-Wevelgem International Airport
Ostend-Bruges International Airport and Kortrijk-Wevelgem International Airport are owned by that political territory
Ostend-Bruges International Airport Kortrijk-Wevelgem International Airport
action filter_type
action find_reverse
entity Flemish Region
relation owned by
type aerodrome
[{'concept': 'aerodrome'}, 'owned by', 'Flemish Region']
SELECT DISTINCT ?y WHERE { ?y property:owned_by resource:Flemish_Region . ?y rdf:type ontology:aerodrome }
[]