Simple Question (Direct)
Simple Question
Q613582
P1313
Q12737077
USER
Which occupation is fulfilled by Sant Rafel del Riu ?
(Q613582,P1313,c(Q12737077))
action filter_type
action find
entity Q613582
relation P1313
type Q12737077
['Q613582', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q613582 property:P1313 ?q . ?q rdf:type ontology:Q12737077 }
Sant Rafel del Riu
action filter_type
action find
entity Sant Rafel del Riu
relation office held by head of government
type occupation
['Sant Rafel del Riu', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Sant_Rafel_del_Riu property:office_held_by_head_of_government ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q26699114
SYSTEM
mayor of San Rafael del Río
Q26699114
(Q613582,P1313,c(Q12737077))
action filter_type
action find
entity Q613582
relation P1313
type Q12737077
The [ANSWER] is fulfilled by Sant Rafel del Riu
['Q613582', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q613582 property:P1313 ?q . ?q rdf:type ontology:Q12737077 }
mayor of San Rafael del Río
The mayor of San Rafael del Río is fulfilled by Sant Rafel del Riu
mayor of San Rafael del Río
action filter_type
action find
entity Sant Rafel del Riu
relation office held by head of government
type occupation
['Sant Rafel del Riu', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Sant_Rafel_del_Riu property:office_held_by_head_of_government ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q613582
P47
Q1048835
USER
Who share the border with that one ?
(Q26699114,P47,c(Q1048835))
action filter_type
action find
entity Q613582
relation P47
type Q1048835
['Q26699114', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q613582 property:P47 ?q . ?q rdf:type ontology:Q1048835 }
Sant Rafel del Riu
action filter_type
action find
entity Sant Rafel del Riu
relation shares border with
type political territorial entity
['mayor of San Rafael del Río', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Sant_Rafel_del_Riu property:shares_border_with ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q995682 Q704847 Q1645728
SYSTEM
Ulldecona, La Sénia, Traiguera
Q1645728 Q1645981 Q704847 Q1646978 Q995682
(Q26699114,P47,c(Q1048835))
action filter_type
action find
entity Q613582
relation P47
type Q1048835
[ANSWERS] share the border with that one
['Q26699114', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q613582 property:P47 ?q . ?q rdf:type ontology:Q1048835 }
Traiguera Rossell, Baix Maestrat La Sénia Canet lo Roig Ulldecona
Ulldecona, La Sénia and Traiguera share the border with that one
Ulldecona La Sénia Traiguera
action filter_type
action find
entity Sant Rafel del Riu
relation shares border with
type political territorial entity
['mayor of San Rafael del Río', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Sant_Rafel_del_Riu property:shares_border_with ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q613582 Q613120
P47
Q20667921
USER
How many french administrative divisions share the border with Sant Rafel del Riu or Romans ?
(Q613582,P47,c(Q20667921)) (Q613120,P47,c(Q20667921))
action count
action union
action filter_type
action find
entity Q613582
relation P47
type Q20667921
action filter_type
action find
entity Q613120
relation P47
type Q20667921
['Q613582', 'P47', {'concept': 'Q20667921'}] ['Q613120', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { resource:Q613582 property:P47 ?b . ?b rdf:type ontology:Q20667921 } UNION { resource:Q613120 property:P47 ?b . ?b rdf:type ontology:Q20667921 } }
Sant Rafel del Riu Romans
action count
action union
action filter_type
action find
entity Sant Rafel del Riu
relation shares border with
type type of french administrative division
action filter_type
action find
entity Romans
relation shares border with
type type of french administrative division
['Sant Rafel del Riu', 'shares border with', {'concept': 'type of french administrative division'}] ['Romans', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { resource:Sant_Rafel_del_Riu property:shares_border_with ?b . ?b rdf:type ontology:type_of_french_administrative_division } UNION { resource:Romans property:shares_border_with ?b . ?b rdf:type ontology:type_of_french_administrative_division } }
[]
type of french administrative division
SYSTEM
7
Q540001 Q838362 Q853402 Q845837 Q601328 Q208439 Q596467
(Q613582,P47,c(Q20667921)) (Q613120,P47,c(Q20667921))
action count
action union
action filter_type
action find
entity Q613582
relation P47
type Q20667921
action filter_type
action find
entity Q613120
relation P47
type Q20667921
[ANSWER]
['Q613582', 'P47', {'concept': 'Q20667921'}] ['Q613120', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { resource:Q613582 property:P47 ?b . ?b rdf:type ontology:Q20667921 } UNION { resource:Q613120 property:P47 ?b . ?b rdf:type ontology:Q20667921 } }
Neuville-les-Dames La Chapelle-du-Châtelard Saint-André-le-Bouchoux Sandrans Saint-Georges-sur-Renon Châtillon-sur-Chalaronne Condeissiat
7
action count
action union
action filter_type
action find
entity Sant Rafel del Riu
relation shares border with
type type of french administrative division
action filter_type
action find
entity Romans
relation shares border with
type type of french administrative division
['Sant Rafel del Riu', 'shares border with', {'concept': 'type of french administrative division'}] ['Romans', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { resource:Sant_Rafel_del_Riu property:shares_border_with ?b . ?b rdf:type ontology:type_of_french_administrative_division } UNION { resource:Romans property:shares_border_with ?b . ?b rdf:type ontology:type_of_french_administrative_division } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q337567 Q15324 Q1048835
USER
Which political territories are located in the neighbourhood of approximately 2 still waterss or bodies of water ?
(c(Q1048835),P206,c(Q337567)|c(Q15324))
action approx
action union
action find_tuple_counts
relation P206
type Q1048835
type Q337567
action find_tuple_counts
relation P206
type Q1048835
type Q15324
value 2
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?r ) WHERE { { ?e property:P206 ?c . ?e rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q337567 } UNION { ?e property:P206 ?c . ?e rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15324 } } GROUP BY ?e } . FILTER ( ?r = 2 ) }
action approx
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
value 2
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?r ) WHERE { { ?e property:located_next_to_body_of_water ?c . ?e rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:still_waters } UNION { ?e property:located_next_to_body_of_water ?c . ?e rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:body_of_water } } GROUP BY ?e } . FILTER ( ?r = 2 ) }
[]
still waters body of water political territorial entity
Q2898 Q5061 Q5062
SYSTEM
Rostock District, East Nusa Tenggara Province, West Nusa Tenggara
Q5075 Q5061 Q5062 Q5093 Q2898 Q10996863 Q109128 Q3916 Q213361
(c(Q1048835),P206,c(Q337567)|c(Q15324))
action approx
action union
action find_tuple_counts
relation P206
type Q1048835
type Q337567
action find_tuple_counts
relation P206
type Q1048835
type Q15324
value 2
[ANSWERS] are located in the neighbourhood of approximately 2 still waterss or bodies of water
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?r ) WHERE { { ?e property:P206 ?c . ?e rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q337567 } UNION { ?e property:P206 ?c . ?e rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15324 } } GROUP BY ?e } . FILTER ( ?r = 2 ) }
South East Sulawesi Province East Nusa Tenggara Province West Nusa Tenggara Maluku Province Rostock District City and County of Swansea Gwynedd Kalimantan Barat Pembrokeshire
Rostock District, East Nusa Tenggara Province and West Nusa Tenggara are located in the neighbourhood of approximately 2 still waterss or bodies of water
Rostock District East Nusa Tenggara Province West Nusa Tenggara
action approx
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
value 2
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?r ) WHERE { { ?e property:located_next_to_body_of_water ?c . ?e rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:still_waters } UNION { ?e property:located_next_to_body_of_water ?c . ?e rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:body_of_water } } GROUP BY ?e } . FILTER ( ?r = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P706
Q107425 Q271669 Q1048835
USER
How many political territories are located in approximately 2 landscapes or landforms ?
(c(Q1048835),P706,c(Q107425)|c(Q271669))
action count
action approx
action union
action find_tuple_counts
relation P706
type Q1048835
type Q107425
action find_tuple_counts
relation P706
type Q1048835
type Q271669
value 2
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q107425'}, {'concept': 'Q271669'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?d WHERE { VALUES ( ?n ) { ( ontology:Q107425 ) ( ontology:Q271669 ) } . ?c rdf:type ?n } GROUP BY ?d } . FILTER ( ?r = 2 ) }
action count
action approx
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landscape
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landform
value 2
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'landscape'}, {'concept': 'landform'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?d WHERE { VALUES ( ?n ) { ( ontology:landscape ) ( ontology:landform ) } . ?c rdf:type ?n } GROUP BY ?d } . FILTER ( ?r = 2 ) }
[]
landscape landform political territorial entity
SYSTEM
1
Q13752
(c(Q1048835),P706,c(Q107425)|c(Q271669))
action count
action approx
action union
action find_tuple_counts
relation P706
type Q1048835
type Q107425
action find_tuple_counts
relation P706
type Q1048835
type Q271669
value 2
[ANSWER]
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q107425'}, {'concept': 'Q271669'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?d WHERE { VALUES ( ?n ) { ( ontology:Q107425 ) ( ontology:Q271669 ) } . ?c rdf:type ?n } GROUP BY ?d } . FILTER ( ?r = 2 ) }
Bohol
1
action count
action approx
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landscape
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landform
value 2
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'landscape'}, {'concept': 'landform'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?d WHERE { VALUES ( ?n ) { ( ontology:landscape ) ( ontology:landform ) } . ?c rdf:type ?n } GROUP BY ?d } . FILTER ( ?r = 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P530
Q1048835 Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with min number of political territories or administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?k WHERE { VALUES ( ?a ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?p rdf:type ?a } GROUP BY ?k } . FILTER ( ?t = ?w ) . { SELECT DISTINCT ( MIN ( ?m ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) ?i WHERE { { ?l property:P530 ?i . ?i rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } UNION { ?l property:P530 ?i . ?i rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q1048835 } } GROUP BY ?i } } }
action argmin
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?k WHERE { VALUES ( ?a ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?p rdf:type ?a } GROUP BY ?k } . FILTER ( ?t = ?w ) . { SELECT DISTINCT ( MIN ( ?m ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) ?i WHERE { { ?l property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?l property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:political_territorial_entity } } GROUP BY ?i } } }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have a diplomatic relationship with min number of political territories or administrative territories
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?k WHERE { VALUES ( ?a ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?p rdf:type ?a } GROUP BY ?k } . FILTER ( ?t = ?w ) . { SELECT DISTINCT ( MIN ( ?m ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) ?i WHERE { { ?l property:P530 ?i . ?i rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } UNION { ?l property:P530 ?i . ?i rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q1048835 } } GROUP BY ?i } } }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea have a diplomatic relationship with min number of political territories or administrative territories
Solomon Islands Papua New Guinea
action argmin
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?k WHERE { VALUES ( ?a ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?p rdf:type ?a } GROUP BY ?k } . FILTER ( ?t = ?w ) . { SELECT DISTINCT ( MIN ( ?m ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) ?i WHERE { { ?l property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?l property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:political_territorial_entity } } GROUP BY ?i } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q8593
P706
Q553036 Q15324 Q1048835
USER
Which political territories have their location as lesser number of natural region of Germanys and bodies of water than Mayen-Koblenz ?
(c(Q1048835),P706,c(Q553036)|c(Q15324))
action less
action union
action find_tuple_counts
relation P706
type Q1048835
type Q553036
action find_tuple_counts
relation P706
type Q1048835
type Q15324
action count
action filter_multi_types
action find
entity Q8593
relation P706
type Q553036
type Q15324
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q553036'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) ?s WHERE { VALUES ( ?f ) { ( ontology:Q553036 ) ( ontology:Q15324 ) } . ?a rdf:type ?f } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { resource:Q8593 property:P706 ?m . { ?m rdf:type ?g . VALUES ( ?g ) { ( ontology:Q553036 ) ( ontology:Q15324 ) } } } } . FILTER ( ?b < ?v ) }
Mayen-Koblenz
action less
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type natural region of Germany
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type body of water
action count
action filter_multi_types
action find
entity Mayen-Koblenz
relation located on terrain feature
type natural region of Germany
type body of water
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'natural region of Germany'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) ?s WHERE { VALUES ( ?f ) { ( ontology:natural_region_of_Germany ) ( ontology:body_of_water ) } . ?a rdf:type ?f } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { resource:Mayen-Koblenz property:located_on_terrain_feature ?m . { ?m rdf:type ?g . VALUES ( ?g ) { ( ontology:natural_region_of_Germany ) ( ontology:body_of_water ) } } } } . FILTER ( ?b < ?v ) }
[]
natural region of Germany body of water 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 Q984485 Q983625 Q983628 Q656449 Q988688 Q18221 Q778 Q213361 Q984493 Q984491 Q984499 Q3396832 Q9337 Q5700 Q988696 Q943948 Q697126 Q25305 Q616408 Q610838 Q920971
(c(Q1048835),P706,c(Q553036)|c(Q15324))
action less
action union
action find_tuple_counts
relation P706
type Q1048835
type Q553036
action find_tuple_counts
relation P706
type Q1048835
type Q15324
action count
action filter_multi_types
action find
entity Q8593
relation P706
type Q553036
type Q15324
[ANSWERS] have their location as lesser number of natural region of Germanys and bodies of water than Mayen-Koblenz
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q553036'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) ?s WHERE { VALUES ( ?f ) { ( ontology:Q553036 ) ( ontology:Q15324 ) } . ?a rdf:type ?f } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { resource:Q8593 property:P706 ?m . { ?m rdf:type ?g . VALUES ( ?g ) { ( ontology:Q553036 ) ( ontology:Q15324 ) } } } } . FILTER ( ?b < ?v ) }
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 Es Migjorn Gran Puigpunyent Sant Joan de Labritja Ariany, Majorca Inca Turks and Caicos Islands The Bahamas Pembrokeshire Sa Pobla Santa Margalida Sant Lluís Tudweiliog Flemish Region 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 lesser number of natural region of Germanys and bodies of water than Mayen-Koblenz
Papua New Guinea Grenada Jamaica
action less
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type natural region of Germany
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type body of water
action count
action filter_multi_types
action find
entity Mayen-Koblenz
relation located on terrain feature
type natural region of Germany
type body of water
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'natural region of Germany'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) ?s WHERE { VALUES ( ?f ) { ( ontology:natural_region_of_Germany ) ( ontology:body_of_water ) } . ?a rdf:type ?f } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { resource:Mayen-Koblenz property:located_on_terrain_feature ?m . { ?m rdf:type ?g . VALUES ( ?g ) { ( ontology:natural_region_of_Germany ) ( ontology:body_of_water ) } } } } . FILTER ( ?b < ?v ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q691 Q613120
P47
Q20667921
USER
How many french administrative divisions do Papua New Guinea or Romans share a border with ?
(c(Q20667921),P47,Q691) (c(Q20667921),P47,Q613120)
action count
action union
action filter_type
action find_reverse
entity Q691
relation P47
type Q20667921
action filter_type
action find_reverse
entity Q613120
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q691'] [{'concept': 'Q20667921'}, 'P47', 'Q613120']
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { VALUES ( ?h ) { ( resource:Q691 ) ( resource:Q613120 ) } . ?r property:P47 ?h }
Papua New Guinea Romans
action count
action union
action filter_type
action find_reverse
entity Papua New Guinea
relation shares border with
type type of french administrative division
action filter_type
action find_reverse
entity Romans
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Papua New Guinea'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Romans']
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { VALUES ( ?h ) { ( resource:Papua_New_Guinea ) ( resource:Romans ) } . ?r property:shares_border_with ?h }
[]
type of french administrative division
SYSTEM
7
Q540001 Q838362 Q853402 Q845837 Q601328 Q208439 Q596467
(c(Q20667921),P47,Q691) (c(Q20667921),P47,Q613120)
action count
action union
action filter_type
action find_reverse
entity Q691
relation P47
type Q20667921
action filter_type
action find_reverse
entity Q613120
relation P47
type Q20667921
[ANSWER]
[{'concept': 'Q20667921'}, 'P47', 'Q691'] [{'concept': 'Q20667921'}, 'P47', 'Q613120']
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { VALUES ( ?h ) { ( resource:Q691 ) ( resource:Q613120 ) } . ?r property:P47 ?h }
Neuville-les-Dames La Chapelle-du-Châtelard Saint-André-le-Bouchoux Sandrans Saint-Georges-sur-Renon Châtillon-sur-Chalaronne Condeissiat
7
action count
action union
action filter_type
action find_reverse
entity Papua New Guinea
relation shares border with
type type of french administrative division
action filter_type
action find_reverse
entity Romans
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Papua New Guinea'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Romans']
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { VALUES ( ?h ) { ( resource:Papua_New_Guinea ) ( resource:Romans ) } . ?r property:shares_border_with ?h }
[]