Simple Question (Direct)
Simple Question
Q373796
P734
Q82799
USER
Which name is associated with Adrian Palmer, 4th Baron Palmer ?
(Q373796,P734,c(Q82799))
action filter_type
action find
entity Q373796
relation P734
type Q82799
['Q373796', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q373796 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Adrian Palmer, 4th Baron Palmer
action filter_type
action find
entity Adrian Palmer, 4th Baron Palmer
relation family name
type name
['Adrian Palmer, 4th Baron Palmer', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Adrian_Palmer,_4th_Baron_Palmer property:family_name ?r . ?r rdf:type ontology:name }
[]
name
Q568872
SYSTEM
Palmer
Q568872
(Q373796,P734,c(Q82799))
action filter_type
action find
entity Q373796
relation P734
type Q82799
[ANSWER] is associated with Adrian [ANSWER], 4th Baron [ANSWER]
['Q373796', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q373796 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Palmer
Palmer is associated with Adrian Palmer, 4th Baron Palmer
Palmer
action filter_type
action find
entity Adrian Palmer, 4th Baron Palmer
relation family name
type name
['Adrian Palmer, 4th Baron Palmer', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Adrian_Palmer,_4th_Baron_Palmer property:family_name ?r . ?r rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q373796
P97
Q355567
USER
What was the heriditary title held by that person ?
(Q568872,P97,c(Q355567))
action filter_type
action find
entity Q373796
relation P97
type Q355567
['Q568872', 'P97', {'concept': 'Q355567'}]
SELECT DISTINCT ?g WHERE { resource:Q373796 property:P97 ?g . ?g rdf:type ontology:Q355567 }
Adrian Palmer, 4th Baron Palmer
action filter_type
action find
entity Adrian Palmer, 4th Baron Palmer
relation noble title
type royal or noble rank
['Palmer', 'noble title', {'concept': 'royal or noble rank'}]
SELECT DISTINCT ?g WHERE { resource:Adrian_Palmer,_4th_Baron_Palmer property:noble_title ?g . ?g rdf:type ontology:royal_or_noble_rank }
[]
royal or noble rank
Q282019
SYSTEM
baronet
Q282019
(Q568872,P97,c(Q355567))
action filter_type
action find
entity Q373796
relation P97
type Q355567
The heriditary title held by that person was a [ANSWER]
['Q568872', 'P97', {'concept': 'Q355567'}]
SELECT DISTINCT ?g WHERE { resource:Q373796 property:P97 ?g . ?g rdf:type ontology:Q355567 }
baronet
The heriditary title held by that person was a baronet
baronet
action filter_type
action find
entity Adrian Palmer, 4th Baron Palmer
relation noble title
type royal or noble rank
['Palmer', 'noble title', {'concept': 'royal or noble rank'}]
SELECT DISTINCT ?g WHERE { resource:Adrian_Palmer,_4th_Baron_Palmer property:noble_title ?g . ?g rdf:type ontology:royal_or_noble_rank }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P532
Q2235308
USER
Which ship type has its base port as Germany ?
(c(Q2235308),P532,Q183)
action filter_type
action find_reverse
entity Q183
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', 'Q183']
SELECT DISTINCT ?t WHERE { ?t property:P532 resource:Q183 . ?t rdf:type ontology:Q2235308 }
Germany
action filter_type
action find_reverse
entity Germany
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', 'Germany']
SELECT DISTINCT ?t WHERE { ?t property:port_of_registry resource:Germany . ?t rdf:type ontology:ship_type }
[]
ship type
Q469715
SYSTEM
MV Colombo Express
Q469715
(c(Q2235308),P532,Q183)
action filter_type
action find_reverse
entity Q183
relation P532
type Q2235308
[ANSWER] has its base port as Germany
[{'concept': 'Q2235308'}, 'P532', 'Q183']
SELECT DISTINCT ?t WHERE { ?t property:P532 resource:Q183 . ?t rdf:type ontology:Q2235308 }
MV Colombo Express
MV Colombo Express has its base port as Germany
MV Colombo Express
action filter_type
action find_reverse
entity Germany
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', 'Germany']
SELECT DISTINCT ?t WHERE { ?t property:port_of_registry resource:Germany . ?t rdf:type ontology:ship_type }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P163
Q14660
USER
Which flag is associated with Germany ?
(Q183,P163,c(Q14660))
action filter_type
action find
entity Q183
relation P163
type Q14660
['Q183', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?e WHERE { resource:Q183 property:P163 ?e . ?e rdf:type ontology:Q14660 }
Germany
action filter_type
action find
entity Germany
relation flag
type flag
['Germany', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?e WHERE { resource:Germany property:flag ?e . ?e rdf:type ontology:flag }
[]
flag
Q48160
SYSTEM
flag of Germany
Q48160
(Q183,P163,c(Q14660))
action filter_type
action find
entity Q183
relation P163
type Q14660
Germany [ANSWER] is associated with Germany
['Q183', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?e WHERE { resource:Q183 property:P163 ?e . ?e rdf:type ontology:Q14660 }
flag of Germany
Germany flag of Germany is associated with Germany
flag of Germany
action filter_type
action find
entity Germany
relation flag
type flag
['Germany', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?e WHERE { resource:Germany property:flag ?e . ?e rdf:type ontology:flag }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P180
Q2221906 Q14660
USER
Which geographic locations are expressed in min number of flags ?
(c(Q14660),P180,Q19866352)
action argmin
action find_reverse_tuple_counts
relation P180
type Q2221906
type Q14660
[{'concept': 'Q14660'}, 'P180', 'Q19866352']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?b ) WHERE { ?t property:P180 ?q . ?t rdf:type ontology:Q14660 . ?q rdf:type ontology:Q2221906 } GROUP BY ?q } . FILTER ( ?b = ?f ) . { SELECT DISTINCT ( MIN ( ?k ) AS ?f ) { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:P180 ?d . ?n rdf:type ontology:Q14660 . ?d rdf:type ontology:Q2221906 } GROUP BY ?d } } }
action argmin
action find_reverse_tuple_counts
relation depicts
type geographic location
type flag
[{'concept': 'flag'}, 'depicts', 'Garth']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?b ) WHERE { ?t property:depicts ?q . ?t rdf:type ontology:flag . ?q rdf:type ontology:geographic_location } GROUP BY ?q } . FILTER ( ?b = ?f ) . { SELECT DISTINCT ( MIN ( ?k ) AS ?f ) { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:depicts ?d . ?n rdf:type ontology:flag . ?d rdf:type ontology:geographic_location } GROUP BY ?d } } }
[]
geographic location flag
Q51 Q48 Q15
SYSTEM
Antarctica, Asia, Africa
Q60142 Q37654 Q40357 Q190928 Q102911 Q1049440 Q7673159 Q325358 Q483242 Q153809 Q264458 Q3404466 Q48 Q170552 Q10717939 Q2010516 Q220032 Q463871 Q1468519 Q51 Q1690211 Q1210950 Q18857007 Q798436 Q2915499 Q5683864 Q39816 Q12511 Q828 Q1030086 Q43501 Q18691599 Q385557 Q107679 Q8072 Q203751 Q19870552 Q631305 Q2915691 Q23397 Q107425 Q132646 Q1322263 Q721931 Q6343615 Q1507 Q3853432 Q1415635 Q15 Q23792 Q1544257 Q106259 Q863454 Q1607773 Q828909 Q7248258 Q954501 Q207326 Q6554910 Q46 Q1123749 Q32047 Q948878 Q15324 Q27381 Q8614 Q4854162 Q10832530 Q148571 Q8502 Q1781097 Q188040 Q1034267 Q135028 Q215635 Q24694968 Q747957 Q7653725 Q19866352
(c(Q14660),P180,Q19866352)
action argmin
action find_reverse_tuple_counts
relation P180
type Q2221906
type Q14660
[ANSWERS] are expressed in min number of flags
[{'concept': 'Q14660'}, 'P180', 'Q19866352']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?b ) WHERE { ?t property:P180 ?q . ?t rdf:type ontology:Q14660 . ?q rdf:type ontology:Q2221906 } GROUP BY ?q } . FILTER ( ?b = ?f ) . { SELECT DISTINCT ( MIN ( ?k ) AS ?f ) { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:P180 ?d . ?n rdf:type ontology:Q14660 . ?d rdf:type ontology:Q2221906 } GROUP BY ?d } } }
Podium market prison shipyard Holland Castle Island Table Rock, Niagara Falls railway platform laboratory Tyrol pergola Carneddau Asia balcony Västerhavet Fusa Province Golden Gate Lower Egypt Nivernais Antarctica lavoir channel location of burial Bakehouse Upper Galilee Haverstraw Bay valley stairs Americas Roman Campagna zoo military facility slaughterhouse cliff volcano Upper Egypt Aberbechan Hall rock formation Lower Galilee lake landscape Bactria place of birth shed Kaaterskill Clove Patagonia New Jersey Meadowlands Sweatshop Africa Palestine Great Dismal Swamp polder pier shop sign wharf Profile Rock natural arch summit butte Europe Coele-Syria Illyria dovecote body of water North Africa Westphalia Bancroft Mills ironworks fence mountain The Narrows quarry Cape Ann Nubia breakwater Bute Docks stack Swansea docks Garth
Antarctica, Asia and Africa are expressed in min number of flags
Antarctica Asia Africa
action argmin
action find_reverse_tuple_counts
relation depicts
type geographic location
type flag
[{'concept': 'flag'}, 'depicts', 'Garth']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?b ) WHERE { ?t property:depicts ?q . ?t rdf:type ontology:flag . ?q rdf:type ontology:geographic_location } GROUP BY ?q } . FILTER ( ?b = ?f ) . { SELECT DISTINCT ( MIN ( ?k ) AS ?f ) { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:depicts ?d . ?n rdf:type ontology:flag . ?d rdf:type ontology:geographic_location } GROUP BY ?d } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q10295972
P30
Q3024240
USER
Are Hunnic Empire a part of those geographic locations ?
(Q10295972,P30,Q51) (Q10295972,P30,Q48) (Q10295972,P30,Q15)
action is_in
entity prev_answer
action find
entity Q10295972
relation P30
['Q10295972', 'P30', 'Q51'] ['Q10295972', 'P30', 'Q48'] ['Q10295972', 'P30', 'Q15']
ASK WHERE { resource:Q10295972 property:P30 ?p . VALUES ( ?p ) { ( resource:Q60142 ) ( resource:Q37654 ) ( resource:Q40357 ) } }
Hunnic Empire
action is_in
entity prev_answer
action find
entity Hunnic Empire
relation continent
['Hunnic Empire', 'continent', 'Antarctica'] ['Hunnic Empire', 'continent', 'Asia'] ['Hunnic Empire', 'continent', 'Africa']
ASK WHERE { resource:Hunnic_Empire property:continent ?p . VALUES ( ?p ) { ( resource:Podium ) ( resource:market ) ( resource:prison ) } }
[]
former country
SYSTEM
NO
(Q10295972,P30,Q51) (Q10295972,P30,Q48) (Q10295972,P30,Q15)
action is_in
entity prev_answer
action find
entity Q10295972
relation P30
[ANSWER]
['Q10295972', 'P30', 'Q51'] ['Q10295972', 'P30', 'Q48'] ['Q10295972', 'P30', 'Q15']
ASK WHERE { resource:Q10295972 property:P30 ?p . VALUES ( ?p ) { ( resource:Q60142 ) ( resource:Q37654 ) ( resource:Q40357 ) } }
No
action is_in
entity prev_answer
action find
entity Hunnic Empire
relation continent
['Hunnic Empire', 'continent', 'Antarctica'] ['Hunnic Empire', 'continent', 'Asia'] ['Hunnic Empire', 'continent', 'Africa']
ASK WHERE { resource:Hunnic_Empire property:continent ?p . VALUES ( ?p ) { ( resource:Podium ) ( resource:market ) ( resource:prison ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P706
Q2221906 Q34442 Q1048835
USER
How many geographic locations are the location where around 1 roads or political territories are located ?
(c(Q34442)|c(Q1048835),P706,c(Q2221906))
action count
action approx
action union
action find_reverse_tuple_counts
relation P706
type Q2221906
type Q34442
action find_reverse_tuple_counts
relation P706
type Q2221906
type Q1048835
value 1
[[{'concept': 'Q34442'}, {'concept': 'Q1048835'}], 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?d ) WHERE { { ?i rdf:type ontology:Q2221906 . ?q rdf:type ontology:Q34442 . ?q property:P706 ?i } UNION { ?q property:P706 ?i . ?i rdf:type ontology:Q2221906 . ?q rdf:type ontology:Q1048835 } } GROUP BY ?i } . FILTER ( ?d = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation located on terrain feature
type geographic location
type road
action find_reverse_tuple_counts
relation located on terrain feature
type geographic location
type political territorial entity
value 1
[[{'concept': 'road'}, {'concept': 'political territorial entity'}], 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?d ) WHERE { { ?i rdf:type ontology:geographic_location . ?q rdf:type ontology:road . ?q property:located_on_terrain_feature ?i } UNION { ?q property:located_on_terrain_feature ?i . ?i rdf:type ontology:geographic_location . ?q rdf:type ontology:political_territorial_entity } } GROUP BY ?i } . FILTER ( ?d = 1 ) }
[]
geographic location road political territorial entity
SYSTEM
4
Q62132 Q897270 Q4412295 Q2387700
(c(Q34442)|c(Q1048835),P706,c(Q2221906))
action count
action approx
action union
action find_reverse_tuple_counts
relation P706
type Q2221906
type Q34442
action find_reverse_tuple_counts
relation P706
type Q2221906
type Q1048835
value 1
[ANSWER]
[[{'concept': 'Q34442'}, {'concept': 'Q1048835'}], 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?d ) WHERE { { ?i rdf:type ontology:Q2221906 . ?q rdf:type ontology:Q34442 . ?q property:P706 ?i } UNION { ?q property:P706 ?i . ?i rdf:type ontology:Q2221906 . ?q rdf:type ontology:Q1048835 } } GROUP BY ?i } . FILTER ( ?d = 1 ) }
Lapland Havelland Northern Maramuresh Northern Bukovina
4
action count
action approx
action union
action find_reverse_tuple_counts
relation located on terrain feature
type geographic location
type road
action find_reverse_tuple_counts
relation located on terrain feature
type geographic location
type political territorial entity
value 1
[[{'concept': 'road'}, {'concept': 'political territorial entity'}], 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?d ) WHERE { { ?i rdf:type ontology:geographic_location . ?q rdf:type ontology:road . ?q property:located_on_terrain_feature ?i } UNION { ?q property:located_on_terrain_feature ?i . ?i rdf:type ontology:geographic_location . ?q rdf:type ontology:political_territorial_entity } } GROUP BY ?i } . FILTER ( ?d = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P706
Q2221906 Q2221906
USER
How many geographic locations are located in around 1 geographic location ?
(c(Q2221906),P706,c(Q2221906))
action count
action approx
action find_tuple_counts
relation P706
type Q2221906
type Q2221906
value 1
[{'concept': 'Q2221906'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?e ) WHERE { ?u property:P706 ?w . ?u rdf:type ontology:Q2221906 . ?w rdf:type ontology:Q2221906 } GROUP BY ?u } . FILTER ( ?e = 1 ) }
action count
action approx
action find_tuple_counts
relation located on terrain feature
type geographic location
type geographic location
value 1
[{'concept': 'geographic location'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?e ) WHERE { ?u property:located_on_terrain_feature ?w . ?u rdf:type ontology:geographic_location . ?w rdf:type ontology:geographic_location } GROUP BY ?u } . FILTER ( ?e = 1 ) }
[]
geographic location geographic location
SYSTEM
26
Q7191008 Q27468 Q27394 Q12603 Q27381 Q1188034 Q27561 Q4412295 Q263686 Q1411784 Q27353 Q3047192 Q745767 Q1555247 Q6488761 Q3646551 Q14705259 Q1134547 Q5428 Q27449 Q213704 Q22602 Q7191014 Q7191015 Q7191011 Q5317255
(c(Q2221906),P706,c(Q2221906))
action count
action approx
action find_tuple_counts
relation P706
type Q2221906
type Q2221906
value 1
[ANSWER]
[{'concept': 'Q2221906'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?e ) WHERE { ?u property:P706 ?w . ?u rdf:type ontology:Q2221906 . ?w rdf:type ontology:Q2221906 } GROUP BY ?u } . FILTER ( ?e = 1 ) }
Pico El León Eastern Europe Southern Africa Pacific Northwest North Africa Pico Humboldt Caribbean Netherlands Northern Maramuresh Southeast Europe Western Palatinate Anglo-America Pico Piedras Blancas Marie Byrd Land North Palatinate Larch Mountain Pico Bonpland Porter Peak Ellsworth Land Siberia Southern Europe Pico Bolívar Vorderpfalz Pico La Concha Pico Pan de Azúcar Pico El Toro Dutch Caribbean
26
action count
action approx
action find_tuple_counts
relation located on terrain feature
type geographic location
type geographic location
value 1
[{'concept': 'geographic location'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?e ) WHERE { ?u property:located_on_terrain_feature ?w . ?u rdf:type ontology:geographic_location . ?w rdf:type ontology:geographic_location } GROUP BY ?u } . FILTER ( ?e = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q373796
P106
Q12737077 Q151885
USER
How many occupations or concepts are the job of Adrian Palmer, 4th Baron Palmer ?
(Q373796,P106,c(Q12737077)) (Q373796,P106,c(Q151885))
action count
action union
action filter_type
action find
entity Q373796
relation P106
type Q12737077
action filter_type
action find
entity Q373796
relation P106
type Q151885
['Q373796', 'P106', {'concept': 'Q12737077'}] ['Q373796', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { resource:Q373796 property:P106 ?t . ?t rdf:type ontology:Q12737077 } UNION { resource:Q373796 property:P106 ?t . ?t rdf:type ontology:Q151885 } }
Adrian Palmer, 4th Baron Palmer
action count
action union
action filter_type
action find
entity Adrian Palmer, 4th Baron Palmer
relation occupation
type occupation
action filter_type
action find
entity Adrian Palmer, 4th Baron Palmer
relation occupation
type concept
['Adrian Palmer, 4th Baron Palmer', 'occupation', {'concept': 'occupation'}] ['Adrian Palmer, 4th Baron Palmer', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { resource:Adrian_Palmer,_4th_Baron_Palmer property:occupation ?t . ?t rdf:type ontology:occupation } UNION { resource:Adrian_Palmer,_4th_Baron_Palmer property:occupation ?t . ?t rdf:type ontology:concept } }
[]
occupation concept
SYSTEM
3
Q131512 Q82955 Q15627169
(Q373796,P106,c(Q12737077)) (Q373796,P106,c(Q151885))
action count
action union
action filter_type
action find
entity Q373796
relation P106
type Q12737077
action filter_type
action find
entity Q373796
relation P106
type Q151885
[ANSWER]
['Q373796', 'P106', {'concept': 'Q12737077'}] ['Q373796', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { resource:Q373796 property:P106 ?t . ?t rdf:type ontology:Q12737077 } UNION { resource:Q373796 property:P106 ?t . ?t rdf:type ontology:Q151885 } }
farmer politician trade unionist
3
action count
action union
action filter_type
action find
entity Adrian Palmer, 4th Baron Palmer
relation occupation
type occupation
action filter_type
action find
entity Adrian Palmer, 4th Baron Palmer
relation occupation
type concept
['Adrian Palmer, 4th Baron Palmer', 'occupation', {'concept': 'occupation'}] ['Adrian Palmer, 4th Baron Palmer', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { resource:Adrian_Palmer,_4th_Baron_Palmer property:occupation ?t . ?t rdf:type ontology:occupation } UNION { resource:Adrian_Palmer,_4th_Baron_Palmer property:occupation ?t . ?t rdf:type ontology:concept } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q373796
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
action filter_type
action find
entity Q373796
relation P27
type Q15617994
SELECT DISTINCT ?a WHERE { resource:Q373796 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
Adrian Palmer, 4th Baron Palmer
action filter_type
action find
entity Adrian Palmer, 4th Baron Palmer
relation country of citizenship
type designation for an administrative territorial entity
SELECT DISTINCT ?a WHERE { resource:Adrian_Palmer,_4th_Baron_Palmer property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
action filter_type
action find
entity Q373796
relation P27
type Q15617994
[ANSWER] is that person an inhabitant of
SELECT DISTINCT ?a WHERE { resource:Q373796 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is that person an inhabitant of
United Kingdom
action filter_type
action find
entity Adrian Palmer, 4th Baron Palmer
relation country of citizenship
type designation for an administrative territorial entity
SELECT DISTINCT ?a WHERE { resource:Adrian_Palmer,_4th_Baron_Palmer property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?x ) { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?m ) WHERE { ?u property:P530 ?y . ?u rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?b ) WHERE { ?f property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?b = ?x ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?x ) { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?m ) WHERE { ?u property:diplomatic_relation ?y . ?u rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?b ) WHERE { ?f property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?b = ?x ) }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have ambassadorial relations with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?x ) { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?m ) WHERE { ?u property:P530 ?y . ?u rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?b ) WHERE { ?f property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?b = ?x ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea have ambassadorial relations with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?x ) { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?m ) WHERE { ?u property:diplomatic_relation ?y . ?u rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?b ) WHERE { ?f property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?b = ?x ) }
[]